在Windows 7中从npm安装Express时出现EAI_AGAIN [英] EAI_AGAIN when installing express from npm in Windows 7

查看:732
本文介绍了在Windows 7中从npm安装Express时出现EAI_AGAIN的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using Windows 7 for development. I installed node.js 0.12.4 and npm is 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

任何人都可以帮忙吗?

推荐答案

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

I found solution here.

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

Its a network issue. in my previous network there is a proxy setting. i have tried to install it without proxy it worked fine.

参考 https://github.com/npm/npm/issues/7348

这篇关于在Windows 7中从npm安装Express时出现EAI_AGAIN的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆