全局安装grunt失败,我可以'在npmjs.org上找不到

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

本文关键字:npmjs org 找不到 grunt 安装 失败 我可以 全局      更新时间:2024-04-13

我在运行npm安装时遇到了这个错误-关于为什么会发生这种情况的想法?我在全球范围内安装其他库从来没有遇到过问题,我找不到任何抱怨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

我最终不得不升级节点和npm