[英]ENOTFOUND error while installing 'express' in Node.js - Windows
我正在尝试通过Windows 7 CMD安装Node.js的快速软件包。
我做了一个
npm install express
我收到以下错误:
npm ERR! Error: getaddrinfo ENOENT
npm ERR! at errnoException (dns.js:31:11)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:140:16)
和
npm ERR! cwd D:\node
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! message getaddrinfo ENOENT
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\node\npm-debug.log
npm not ok
我正在防火墙后面。 这是偶然的原因吗?
非常感谢!
与管理员运行cmd,它将正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.