简体   繁体   English

在Windows上运行grunt时NPM安装失败

[英]NPM install failed on Windows for running grunt

I was trying to install grunt on Windows 7. I completed the npm install -g grunt-cli without any error. 我试图在Windows 7上安装grunt。我完成了npm install -g grunt-cli而没有任何错误。 But when I tried npm install in the root directory of my project I got the following errors: 但是当我在项目的根目录中尝试npm install ,出现了以下错误: 终端截图

I'm working with the latest Node.js version. 我正在使用最新的Node.js版本。 I am running the command prompt as administrator. 我以管理员身份运行命令提示符。 Any suggestions please? 有什么建议吗? Thank you. 谢谢。

The npm registry is down at the moment. npm注册表目前已关闭。 Follow the issue here: https://github.com/isaacs/npm/issues/4126 请点击此处的问题: https//github.com/isaacs/npm/issues/4126

你需要先在你的机器上安装phantomjs (一个无头浏览器,它将用于qunit测试)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM