Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM ELIFECYCLE error - using node server.js command

I am deploying test-bot on ibm watson as described here https://github.com/eciggaar/text-bot and when I am trying to deploy code locally using CLI foundry it is getting the following errors.

I am using Nodejs version 6.10.3 and npm version 5.0.4

can someone please help me with this.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: `node server.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] start 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\PRERNA CHUGH\AppData\Roaming\npm-cache\_logs\2017-06-29T13_36_22_995Z-debug.log 
like image 834
Prerna Chugh Avatar asked Jun 30 '17 11:06

Prerna Chugh


People also ask

How do I resolve npm start error?

To solve the Missing script: "start" error, make sure to add a start command to the scripts object in your package. json file and open your shell or IDE in the root directory of your project before running the npm start command.

Why npm install is not working?

The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be that a PATH or system variable is not correctly set. The error can also occur if you do not have npm or Node. js installed, have an outdated version, or have permission issues.


1 Answers

Sometimes, when you already started your web server, the ELIFECYCLE error comes if you try to run the npm command again on another terminal (cmd). Make sure that you don't have any other instance running up in the same port.

Try to clean your cache with: npm cache clean with Administrator/root and delete your node_modules, after this steps, try to install your packages again with npm install --save

like image 182
Sayuri Mizuguchi Avatar answered Oct 17 '22 11:10

Sayuri Mizuguchi