node.js - npm run "npm run " enoent error -


basically copying , pasting popular fullstack redux tutorial. cannot figure out why second npm run looking script in node_modules folder, oppose package.json file

"scripts": {   "test": "mocha --compilers js:babel-core/register --require ./test/test_helper.js  --recursive",   "test:watch": "npm run test -- --watch" }, 

npm run test -- --watch

npm err! error: enoent, open '/home/l2silver/react-redux-rest/node_modules/test/package.json' npm err! if need help, may report log at: npm err!     <http://github.com/isaacs/npm/issues> npm err! or email to: npm err!     <npm-@googlegroups.com>  npm err! system linux 3.19.0-47-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "test" "--" "--watch" npm err! cwd /home/l2silver/react-redux-rest npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path /home/l2silver/react-redux-rest/node_modules/test/package.json npm err! code enoent npm err! errno 34 npm err!  npm err! additional logging details can found in: npm err!     /home/l2silver/react-redux-rest/npm-debug.log npm err! not ok code 0 npm err! weird error 34 npm warn failure might due use of legacy binary "node" npm warn further explanations, please read /usr/share/doc/nodejs/readme.debian  npm err! not ok code 0 

i got same problem , had same version of node have (v0.10.25). solution me update node newest version (v4.4.3).

updated node installer the node website , npm run test -- --watch worked fine.


Comments