全局安装grunt失败了,我在npmjs.org上找不到它

时间:2012-07-30 00:36:21

标签: javascript npm gruntjs

当我运行npm install时出现此错误 - 关于为什么会发生这种情况的想法? 我从来没有在全球安装其他库时遇到问题,我在http://search.npmjs.org/

上找不到咕噜声
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

1 个答案:

答案 0 :(得分:0)

我最终只需要升级node和npm

相关问题