npm install -g express警告影响npm install吗
发布于 11 年前 作者 qq1350995917 7634 次浏览 最后一次编辑是 8 年前

执行:npm install -g express 报了一下的几个警告

npm WARN package.json range-parser@0.0.4 No repository field. npm WARN package.json cookie-signature@1.0.1 No repository field. npm WARN package.json uid2@0.0.3 No repository field. npm WARN package.json uid2@0.0.3 No readme data. npm WARN package.json bytes@0.2.1 No repository field. npm WARN package.json methods@0.0.1 No repository field. npm WARN package.json methods@0.0.1 No readme data. npm WARN package.json pause@0.0.1 No repository field. npm WARN package.json github-url-from-git@1.1.1 No repository field. npm WARN package.json assert-plus@0.1.2 No repository field. npm WARN package.json ctype@0.5.2 No repository field.

然后执行:npm install的时候就报错了

npm WARN package.json application-name@0.0.1 No repository field. npm WARN package.json application-name@0.0.1 No readme data. npm http GET https://registry.npmjs.org/express/3.4.4 npm ERR! Error: tunneling socket could not be established, cause=connect ETIMEDOUT npm ERR! at ClientRequest.onError (/usr/local/lib/node_modules/npm/node_modules/request/node_modules/tunnel-agent/index.js:159:17) npm ERR! at ClientRequest.g (events.js:175:14) npm ERR! at ClientRequest.EventEmitter.emit (events.js:95:17) npm ERR! at Socket.socketErrorListener (http.js:1520:9) npm ERR! at Socket.EventEmitter.emit (events.js:95:17) npm ERR! at net.js:426:14 npm ERR! at process._tickCallback (node.js:415:13) npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-358.23.2.el6.x86_64 npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” "install" npm ERR! cwd /home/dpw/third/workspace/workspaceForLinux/workspaceForNode/blog npm ERR! node -v v0.10.8 npm ERR! npm -v 1.2.23 npm ERR! code ECONNRESET npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/dpw/third/workspace/workspaceForLinux/workspaceForNode/blog/npm-debug.log npm ERR! not ok code 0

我尝试了好几次了,都是失败,请给点建议。谢谢!

回到顶部