grunt clean提示错误

我在命令栏输入grunt clean,提示以下错误node

grunt-cli: The grunt command line interface (v1.2.0)

Fatal error: Unable to find local grunt.

If you're seeing this message, 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`

解决方法npm

sudo npm install -g grunt-cli

运行完以上命令继续如下命令ide

cd [my project root]
npm install grunt --save-dev

运行grunt,出现如下错误grunt

Loading "Gruntfile.js" tasks...ERROR
>> Error: Cannot find module 'node-minify'
Warning: Task "default" not found. Use --force to continue.

Aborted due to warnings.

从新运行ui

npm install –save-dev node-monify
npm install
相关文章
相关标签/搜索