node.js - npm start fails because of node-api@ ELIFECYCLE -


i have problem starting node.js server. server app tested on system , worked perfectly. error log says wrong node-api@ not able find solution.

0 info worked if ends ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ] 2 info using npm@2.9.1 3 info using node@v0.12.3 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info prestart node-api@ 6 info start node-api@ 7 verbose unsafe-perm in lifecycle true 8 info node-api@ failed exec start script 9 verbose stack error: node-api@ start: `node server.js` 9 verbose stack exit status 1 9 verbose stack     @ eventemitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16) 9 verbose stack     @ eventemitter.emit (events.js:110:17) 9 verbose stack     @ childprocess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 9 verbose stack     @ childprocess.emit (events.js:110:17) 9 verbose stack     @ maybeclose (child_process.js:1015:16) 9 verbose stack     @ process.childprocess._handle.onexit (child_process.js:1087:5) 10 verbose pkgid node-api@ 11 verbose cwd /volumes/hdd/users/…/app/db 12 error darwin 14.3.0 13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" 14 error node v0.12.3 15 error npm  v2.9.1 16 error code elifecycle 17 error node-api@ start: `node server.js` 17 error exit status 1 18 error failed @ node-api@ start script 'node server.js'. 18 error problem node-api package, 18 error not npm itself. 18 error tell author fails on system: 18 error     node server.js 18 error can info via: 18 error     npm owner ls node-api 18 error there additional logging output above. 19 verbose exit [ 1, true ] 

what wrong installation , how can solve this?

two things can try here:

  1. ensure running same version of node other system seen running perfectly. can test entering following on terminal , terminal working on: node -v. if they're different, upgrade (or indeed downgrade) installation.
  2. delete node_modules directory project root on current computer, run npm install ensure binaries compiled compatible operating system.

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -