我在命令欄輸入grunt clean,提示如下錯誤
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`
解決方法
sudo npm install -g grunt-cli
運行完以上命令繼續以下命令
cd [my project root]
npm install grunt --save-dev
運行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.
重新運行
npm install –save-dev node-monify
npm install