Whenever scripts in the package json are executed, ones with NODE_ENV=development or similar will throw an error. In order to fix it, cross-env was made.
If you are using Windows with Cygwin or similar, run the command
npm install -D cross-env
and then change the code in package.json to the following
"scripts": {
"start": "cross-env NODE_ENV=development ./node_modules/.bin/hjs-dev-server",
"test": "cross-env NODE_ENV=test ./node_modules/karma/bin/karma start karma.conf.js",
"test:watch": "npm run test -- --watch"
},
Whenever scripts in the package json are executed, ones with NODE_ENV=development or similar will throw an error. In order to fix it, cross-env was made.
If you are using Windows with Cygwin or similar, run the command
and then change the code in package.json to the following
and the commands should work as expected.