安装Grunt时出错

时间:2014-07-08 19:53:06

标签: node.js gruntjs

您好我最近尝试使用node package manager命令根据其网站上的说明安装grunt-command line interface

sudo npm install -g grunt-cli

它没有用,我收到了以下错误

/usr/local/bin/grunt -> /usr/local/lib/node_modules/grunt-cli/bin/grunt
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/couch-login requires request@'~2.9.202' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/request,
npm WARN unmet dependency which is version 2.30.0
grunt-cli@0.1.13 /usr/local/lib/node_modules/grunt-cli
├── resolve@0.3.1
├── nopt@1.0.10 (abbrev@1.0.5)
└── findup-sync@0.1.3 (lodash@2.4.1, glob@3.2.11)
➜  ~

我不确定如何更新此依赖性。任何人都可以对此有所了解吗?

1 个答案:

答案 0 :(得分:0)

尝试以下方法:

  1. npm cache clean
  2. npm install -g npm(更新npm)
  3. 完全重新安装node.js(如果全部失败)。
  4. 如果有效,请告诉我。

相关问题