我在命令欄輸入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