【发布时间】:2014-07-18 14:48:38
【问题描述】:
所以我搞砸了删除和安装 node 和 npm 来安装没有 sudo 的包,现在我不能在 Webstorm 中使用 Grunt 面板
消息是:
grunt --no-color --gruntfile /Users/max/repos/cb/Gruntfile.js --tasks /Applications/WebStorm.app/plugins/JavaScriptLanguage/grunt_js/tasks _intellij_grunt_tasks_fetcher
Cannot run program "grunt" (in directory "/Users/max/repos/cb"): error=2, No such file or directory
Looks like the grunt command isn't in your system path.
In order to view/run tasks, you need to install Grunt's command line interface globally:
npm install -g grunt-cli
For more information, please see http://gruntjs.com/getting-started
但奇怪的是我可以从终端运行 grunt,即使在 Webstorm 中也是如此。 截屏:
请注意我安装了grunt-cli。
【问题讨论】: