node.js - 在 Windows 7 中从 npm 安装 express 时出现 EAI_AGAIN

标签 node.js express

我正在使用 Windows 7 进行开发。我安装了 node.js 0.12.4,npm 是 2.10.1。

现在我执行

npm intall express --save

但遇到以下错误信息:

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nnode_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! syscall getaddrinfo

npm ERR! getaddrinfo EAI_AGAIN
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     d:\meandev\chat\npm-debug.log

有人能帮忙吗?

最佳答案

我在这里找到了解决方案。

这是一个网络问题。在我以前的网络中有一个代理设置。我尝试在没有代理的情况下安装它,但效果很好。

引用 https://github.com/npm/npm/issues/7348

关于node.js - 在 Windows 7 中从 npm 安装 express 时出现 EAI_AGAIN,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30702702/

相关文章:

mysql - 如何在Socket.IO中为每个连接的用户单独分配数据?

node.js - Node : Never emits "end" when reading a TCP Socket

node.js - 无法解析私钥 : Unsupported key format

javascript - 有人可以解释这个 : EventEmitter causes failure when global variable

node.js - 如何在其他服务器上部署docker文件

node.js - 请求的资源上不存在 'Access-Control-Allow-Origin' header

node.js - 如何将Heroku API(服务器/node-express)连接到自定义域gh-pages

node.js - 类型错误 : Cannot read property 'collection' of undefined what is the mistake here?

javascript - Express:router.post 和 router.get 之间共享逻辑

node.js - 找不到模块 'crypto'