Grunt命令 - 无法找到本地咕噜声

时间:2015-07-30 04:12:13

标签: gruntjs npm

我从git repo复制了一个现有的Grunt项目,当我运行时 - grunt serve-dev命令它告诉我以下内容:

 Fatal error: Unable to find local grunt.

 If you're seeing this message, either a Gruntfile wasn't found or grunt
 hasn't been installed locally to your project. For more information about
 installing and configuring grunt, please see the Getting Started guide:

 http://gruntjs.com/getting-started

但如果我 - grunt -version它说:grunt-cli v0.1.13。

可能是什么问题?

1 个答案:

答案 0 :(得分:0)

确保在克隆回购后运行npm install。通常node_modules,例如grunt默认情况下不包含回购邮件,但您必须自己安装它们。