我用下面的命令卸载了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
https://stackoverflow.com/questions/15483735
复制相似问题