Saturday, 10 June 2017

Npm can't install any packages

I need some help because i can't install any npm packages. When i try to install something i get this error.The error My node version is 6.11.0 and npm version is 3.10.10.

npm-debug.log :

0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'server:dev', 1 verbose cli '--', 1 verbose cli '--hot', 1 verbose cli '--proxy-requests' ] 2 info using npm@3.10.10 3 info using node@v6.11.0 4 verbose stack Error: missing script: server:dev 4 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:151:19) 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:61:5 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:356:5 4 verbose stack at checkBinReferences_ (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:320:45) 4 verbose stack at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:354:3) 4 verbose stack at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:124:5) 4 verbose stack at ReadFileContext. (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:295:20) 4 verbose stack at ReadFileContext.callback (C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:78:16) 4 verbose stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:366:13) 5 verbose cwd C:\Users\Scyli\Desktop\angular 6 error Windows_NT 10.0.14393 7 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "server:dev" "--" "--hot" "--proxy-requests" 8 error node v6.11.0 9 error npm v3.10.10 10 error missing script: server:dev 11 error If you need help, you may report this error at: 11 error https://github.com/npm/npm/issues 12 verbose exit [ 1, true ]

Please help meg to solve this problem.



via Dóczi Szilárd

No comments:

Post a Comment