首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过npm安装grunt-cli包在Windows上失败

通过npm安装grunt-cli包在Windows上失败
EN

Stack Overflow用户
提问于 2015-07-03 07:46:58
回答 1查看 1.4K关注 0票数 2

我不能在windows 7上安装咕噜

我试图通过以下命令安装它:

代码语言:javascript
复制
npm install ‐g grunt‐cli

但它给了我以下错误:

代码语言:javascript
复制
C:\Windows\System32>npm install -g grunt-cli
npm ERR! addLocal Could not install C:\Windows\System32\-g
npm ERR! addLocal Could not install C:\Windows\System32\grunt-cli
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR! node v0.12.5
npm ERR! npm  v2.11.2
npm ERR! path C:\Windows\System32\-g
npm ERR! code ENOENT
npm ERR! errno -4058

npm ERR! enoent ENOENT, open 'C:\Windows\System32\-g'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Windows\System32\npm-debug.log
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-10-28 11:32:33

将参数顺序更改为:

代码语言:javascript
复制
npm install ‐g grunt‐cli

代码语言:javascript
复制
npm install grunt-cli -g

干杯!

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31201380

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档