0
我已經在Windows 7下安裝了最新版本的節點v0.10.35。這個版本包含了npm。npm update a package.json拋出錯誤
當我試圖更新我收到以下錯誤的package.json:
[email protected] install C:\Users\Giuliano\Downloads\Rich-Client-Music-Player-master (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! [email protected] install: `(node-gyp rebuild 2> builderror.log) || (exit 0)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! (node-gyp rebuild 2> builderror.log) || (exit 0)
npm ERR! You can get their info via:
npm ERR! npm owner ls ws
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\NodeJS\\\\node.exe" "C:\\Program Files\\No
npm ERR! cwd C:\Users\Giuliano\Downloads\Rich-Client-Music-Player-master
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! syscall spawn
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! not ok code 0
我必須承認,我已經安裝了微軟的Visual Studio 2013和Python 2.7.9作爲推薦對於這個問題。 另外,如果我嘗試安裝socket.io(npm install socket.io),我會得到相同的錯誤。我附上一個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 'install',
1 verbose cli 'socket.io' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\NodeJS\\node.exe
5 error Error: ENOENT, stat 'C:\Users\Giuliano\AppData\Roaming\npm'
6 error If you need help, you may report this *entire* log,
6 error including the npm and node versions, at:
6 error <http://github.com/npm/npm/issues>
7 error System Windows_NT 6.1.7601
8 error command "C:\\Program Files\\NodeJS\\\\node.exe" "C:\\Program Files\\NodeJS\\node_modules\\npm\\bin\\npm-cli.js" "install" "socket.io"
9 error cwd C:\Users\Giuliano\Desktop
10 error node -v v0.10.35
11 error npm -v 1.4.28
12 error path C:\Users\Giuliano\AppData\Roaming\npm
13 error code ENOENT
14 error errno 34
15 verbose exit [ 34, true ]
你可以發佈你的包。 JSON? – Catfish