简体   繁体   English

在全球范围内安装grunt失败,我在npmjs.org上找不到它

[英]Installing grunt globally failed and I can't find it on npmjs.org

I'm getting this error when I run npm install - ideas on why this might be happening? 运行npm install时出现此错误-有关为什么可能会发生这种情况的想法? I've never had a problem installing other libraries globally and I can't find grunt on http://search.npmjs.org/ 我从来没有在全球范围内安装其他库的问题,也无法在http://search.npmjs.org/上找到咕gr的声音

npm install -g grunt
npm ERR! Error: Not found: grunt@''
npm ERR! Valid install targets:
npm ERR! ["latest","devel"]
npm ERR!     at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:410:10)
npm ERR!     at /usr/local/lib/node_modules/npm/lib/cache.js:403:17
npm ERR!     at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:136:7)
npm ERR!     at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "grunt"
npm ERR! cwd /Users/**
npm ERR! node -v v0.4.10
npm ERR! npm -v 1.0.103
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/**/npm-debug.log
npm not ok

我最终只需要升级node和npm

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

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