npm run build
and modify the webpack.config.js to take advantage of react hot module reload (react-hmr), for faster front-end development.locals[0] does not appear to be a 'module' object with Hot Module replacement API enabled
. This can happen when the NODE_ENV is blank. To fix the issue, set the NODE_ENV to a non-empty value, then run the build again.DEBUG=* node .
or you can spell out which packages you want to show debug output, e.g. DEBUG=express*,swagger* node .
.npm run lint
and npm run jscs
.node_modules/.bin/sequelize migration:create --name example-name
. Note: be sure to wrap your migration code inside a transaction. This ensures that all migration operations are successful before committing changes to the database. This minimizes the possibility of a failed partial migration during release phase.Execute any of the scripts in the scripts
section of ./package.json
by calling npm run [SCRIPTNAME]
, e.g. npm run test
or npm run lint
or npm run start
.