question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cross-env NODE_ENV=development && node ./api/api.js -- npm ERR! code ELIFECYCLE npm ERR! errno 1

See original GitHub issue

F:\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:closed
  • Created 6 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
aichbauercommented, Feb 22, 2018

@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…

0reactions
sankar2389commented, Feb 22, 2018

@aichbauer sure I’ll help whatever I could.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm error "npm ERR! code ELIFECYCLE"
Step 1: $ npm cache clean --force. Step 2: Delete node_modules by $ rm -rf node_modules ( rmdir /S /Q node_modules in windows)...
Read more >
How to solve npm error npm ERR! code ELIFECYCLE
Follow below steps to fix the error : Step 1 : In our first step we will try cleaning the cache of the...
Read more >
npm Webpack code ELIFECYCLE errno 1 - pi3g.com
json and to reinstall the modules using npm install. This did not work for me, the error persisted. Here is what worked: I...
Read more >
cross-env: command not found · Issue #493 · react-boilerplate ...
I'm running node 4.4.5 locally. Cloned the repo, ran setup command without issue. On 'npm run start' I get an error: react-boilerplate@3.0.0 ...
Read more >
ERROR: sh: 1: cross-env: Permission denied
sh: 1: cross-env: Permission denied npm ERR! code ELIFECYCLE npm ERR! errno 126 ... NODE_ENV=production node_modules/webpack/bin/webpack.js ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found