无法在ubuntu中安装node express

时间:2014-05-23 11:51:37

标签: node.js npm

安装快速跟踪错误时

npm install express -d 

npm info it worked if it ends with ok

npm info using npm@1.4.9

npm info using node@v0.10.28

npm info trying registry request attempt 1 at 16:59:15

npm http GET http:/registry.npmjs.org/express

npm http 403 http:/registry.npmjs.org/express

npm ERR! TypeError: Cannot call method 'match' of undefined

npm ERR!     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:104:29)

npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:132:9)

npm ERR!     at RegClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:253:14)

npm ERR!     at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:211:65)

npm ERR!     at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:123:22)

npm ERR!     at Request.EventEmitter.emit (events.js:98:17)

npm ERR!     at Request.<anonymous> 
(/usr/local/lib/node_modules/npm/node_modules/request/request.js:893:14)

npm ERR!     at Request.EventEmitter.emit (events.js:117:20)

npm ERR!     at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:844:12)

npm ERR!     at IncomingMessage.EventEmitter.emit (events.js:117:20)

npm ERR! If you need help, you may report this *entire* log,

npm ERR! including the npm and node versions, at:

npm ERR!     http://github.com/npm/npm/issues

npm ERR! System Linux 3.2.0-60-generic-pae

npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "express" "-d"

npm ERR! cwd /home/suman/blog

npm ERR! node -v v0.10.28

npm ERR! npm -v 1.4.9

npm ERR! type non_object_property_call

npm ERR! 

npm ERR! Additional logging details can be found in:

npm ERR!     /home/suman/blog/npm-debug.log

npm ERR! not ok code 0

0 个答案:

没有答案