我用下面的命令卸载了grunt。
npm uninstall -g grunt
然后我用下面的命令再次安装了grunt。
npm install -g grunt-cli
请访问以下链接:https://npmjs.org/package/grunt-html
我想使用上面的grunt插件
但是当我运行grunt命令时,它给出了以下错误:
D:\nodeJS\node_modules\grunt-html>grunt
grunt-cli: The grunt command line interface. (v0.1.6)
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
发布于 2013-03-19 02:07:11
我认为你必须在你的package.json
文件中添加grunt。参见this link。
发布于 2013-09-27 01:24:06
我在Windows上遇到了这个问题,因为我在64位Windows操作系统上安装了32位版本的Node。当我专门安装64位版本时,它就开始工作了。
发布于 2016-11-10 16:36:47
如果你是一个exists项目,也许应该执行npm install。
https://stackoverflow.com/questions/15483735
复制相似问题