在webstorm中运行grunt任务作为配置

时间:2014-12-01 23:51:46

标签: gruntjs webstorm

在webstorm中,从终端运行grunt serve可以完美运行并向我显示一个网页。但是,当我进行配置并运行时,有一个关于SASS到CSS编译的错误:

Running "concurrent:server" (concurrent) task
Warning: Running "compass:server" (compass) task
Warning: You need to have Ruby and Compass installed and in your system PATH for this task to work. More info: https://github.com/gruntjs/grunt-contrib-compass Use --force to continue.
Aborted due to warnings.

我不明白,因为我使用相同的设置(描述here

1 个答案:

答案 0 :(得分:1)

似乎从快捷方式启动时,WebStorm无法看到您的终端环境。请按照https://devnet.jetbrains.com/message/5513463#5513463中的建议尝试编辑启动器 - 它有帮助吗?