试图彻底地读这堆栈跟踪,但它并没有让我更聪明。想法?npm安装jquery失败
sudo npm install jquery
npm ERR! registry error parsing json
npm ERR! error installing [email protected] SyntaxError: Unexpected token ILLEGAL
npm ERR! error installing [email protected] <html><title>Request timeout</title><body><h1>Request timeout</h1></body></html>
npm ERR! error installing [email protected] at Object.parse (native)
npm ERR! error installing [email protected] at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:147:21)
npm ERR! error installing [email protected] at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22)
npm ERR! error installing [email protected] at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:361:18)
npm ERR! error installing [email protected] at Request.emit (events.js:64:17)
npm ERR! error installing [email protected] at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:327:16)
npm ERR! error installing [email protected] at IncomingMessage.emit (events.js:81:20)
npm ERR! error installing [email protected] at HTTPParser.onMessageComplete (http.js:133:23)
npm ERR! error installing [email protected] at CleartextStream.ondata (http.js:1228:22)
npm ERR! error installing [email protected] at CleartextStream._push (tls.js:303:27)
npm ERR! registry error parsing json
npm ERR! SyntaxError: Unexpected token ILLEGAL
npm ERR! <html><title>Request timeout</title><body><h1>Request timeout</h1></body></html>
npm ERR! at Object.parse (native)
npm ERR! at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:147:21)
npm ERR! at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22)
npm ERR! at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:361:18)
npm ERR! at Request.emit (events.js:64:17)
npm ERR! at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/main.js:327:16)
npm ERR! at IncomingMessage.emit (events.js:81:20)
npm ERR! at HTTPParser.onMessageComplete (http.js:133:23)
npm ERR! at CleartextStream.ondata (http.js:1228:22)
npm ERR! at CleartextStream._push (tls.js:303:27)
npm ERR! Report this *entire* log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "jquery"
npm ERR! cwd /Users/fw/nodeprojects/cloudnode/zorro
npm ERR! node -v v0.4.10
npm ERR! npm -v 1.0.106
npm ERR! type unexpected_token
npm ERR! arguments [ 'ILLEGAL' ]
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/fw/nodeprojects/cloudnode/zorro/npm-debug.log
npm not ok
这是否仍在发生?如果是这样,请尝试将npm更新为最新。看起来这个错误是因为它有问题拉下了软件包。如果NPM家伙在1.0.106之间改变了他们的模式,现在它可以解释它。 – 2011-12-25 20:49:40
这停止了发生,没有更新我认为已经是最新的NPM。但是,恐怕我不知道它的原因。这可能是因为我卸载了MacPorts ... – 2011-12-28 08:24:51