当我尝试通过 Node 安装 Express 时,它显示以下错误:
D:\NodeJS\express>npm install express
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express
npm ERR! Error: tunneling socket could not be established, cause=getaddrinfo ENOENT
npm ERR! at ClientRequest.onError (C:\Program Files\nodejs\node_modules\npm\node_modules\request\tunnel.js:161:17)
npm ERR! at ClientRequest.g (events.js:192:14)
npm ERR! at ClientRequest.EventEmitter.emit (events.js:96:17)
npm ERR! at CleartextStream.socketErrorListener (http.js:1394:9)
npm ERR! at CleartextStream.EventEmitter.emit (events.js:96:17)
npm ERR! at Socket.onerror (tls.js:1318:17)
npm ERR! at Socket.EventEmitter.emit (events.js:126:20)
npm ERR! at Socket.connect.require.lookup.addressType (net.js:699:16)
npm ERR! at process.startup.processNextTick.process._tickCallback (node.js:244:9)
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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
npm ERR! cwd D:\NodeJS\express
npm ERR! node -v v0.8.17
npm ERR! npm -v 1.2.0
npm ERR! code ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\NodeJS\express\npm-debug.log
npm ERR! not ok code 0
D:\NodeJS\express>
我也尝试过 -g 安装,但它不起作用!请在这里帮我...