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