cross-env NODE_ENV=development && node ./api/api.js -- npm ERR! code ELIFECYCLE npm ERR! errno 1
See original GitHub issueF:\nodejs\Gold\express-graphql-boilerplate-master>npm start
express-rest-api-boilerplate@0.0.0 prestart F:\nodejs\Gold\express-graphql-boilerplate-master npm run create-sqlite-db
express-rest-api-boilerplate@0.0.0 create-sqlite-db F:\nodejs\Gold\express-graphql-boilerplate-master shx touch ./db/database.sqlite
express-rest-api-boilerplate@0.0.0 start F:\nodejs\Gold\express-graphql-boilerplate-master npm run nodemon
express-rest-api-boilerplate@0.0.0 nodemon F:\nodejs\Gold\express-graphql-boilerplate-master nodemon --exec npm run dev
[nodemon] 1.11.0
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting npm run dev
express-rest-api-boilerplate@0.0.0 dev F:\nodejs\Gold\express-graphql-boilerplate-master cross-env NODE_ENV=development && node ./api/api.js
only development, staging, test and production are valid NODE_ENV variables but undefined is specified
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! express-rest-api-boilerplate@0.0.0 dev: cross-env NODE_ENV=development && node ./api/api.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the express-rest-api-boilerplate@0.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Sankar\AppData\Roaming\npm-cache_logs\2017-12-25T03_40_52_904Z-debug.log [nodemon] app crashed - waiting for file changes before starting…
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (6 by maintainers)
Top GitHub Comments
@rayehizoba I figured out that cross-env is only working when you do not use && between comands… so in your package.json you can change
"dev": "cross-env NODE_ENV=develompent && node ./api/api.js",
to"dev": "cross-env NODE_ENV=develompent node ./api/api.js",
which should do the trick…@aichbauer sure I’ll help whatever I could.