想手动编译bootstrap,安装grunt-cli时出错了

新手上路,请多包涵

这是错误信息,请问如何解决呢?

npm ERR! Windows_NT 6.3.9600
npm ERR! argv "E:\\softWares\\nodeJs\\\\node.exe" "E:\\softWares\\nodeJs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cil"
npm ERR! node v0.12.0
npm ERR! npm v3.5.1
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/grunt-cil
npm ERR! 404
npm ERR! 404 'grunt-cil' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\ZXQ\npm\npm-debug.log

阅读 4.4k
2 个回答

有个答案中说找不到grunt-cli那是因为你打错成了grunt-cil了。

clipboard.png

先在安装grunt-cli在全局环境下面,推荐使用cnpm进行安装(npm可能会有被墙的情况)。

cnpm install -g grunt-cli
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题