[英]Grunt Warning: Task “compass:server”
I know there are any other post about this problem,but right now no one have solved my problem. 我知道有关此问题的其他文章,但现在没有人解决了我的问题。 I'm trying tu use Grunt on a project with node,compass,git.
我正在尝试在带有node,compass,git的项目上使用Grunt。 After I've installed node i use the following statement: npm install npm install bower gem install compass npm install git npm grunt-cli npm install -g grunt grunt-cli
在安装节点之后,我使用以下语句:npm install npm install bower gem安装指南针npm install git npm grunt-cli npm install -g grunt grunt-cli
then when I use grunt serve I get the following message: 然后当我使用grunt服务时,会收到以下消息:
Running "serve" task
运行“服务”任务
Running "clean:server" (clean) task 运行“ clean:server”(干净)任务
0 paths cleaned.
清除了0条路径。
Running "wiredep:app" (wiredep) task 运行“ wiredep:app”(wiredep)任务
Running "wiredep:test" (wiredep) task 运行“ wiredep:test”(wiredep)任务
Running "wiredep:sass" (wiredep) task 运行“ wiredep:sass”(wiredep)任务
Running "concurrent:server" (concurrent) task Warning: jit-grunt: Plugin for the "compass" task not found. 运行“ concurrent:server”(并发)任务警告:jit-grunt:找不到“ compass”任务的插件。 If you have installed the plugin already, please setting the static mapping.
如果您已经安装了插件,请设置静态映射。 See https://github.com/shootaroo/jit-grunt#static-mappings
参见https://github.com/shootaroo/jit-grunt#static-mappings
Warning: Task "compass:server" failed. 警告:任务“指南针:服务器”失败。 Use --force to continue.
使用--force继续。
Aborted due to warnings. 由于警告而中止。
Execution Time (2015-11-20 15:54:16 UTC) loading tasks 59ms █████████████████████████████████████████████ 95% Total 62ms Use --force to continue. 执行时间(2015-11-20 15:54:16 UTC)加载任务59ms████████████████████████████████ ██████████████95%总计62毫秒使用-强制继续。
Aborted due to warnings.
Execution Time (2015-11-20 15:54:12 UTC) wiredep:app 981ms ████████████ 28% wiredep:test 75ms █ 2% wiredep:sass 107ms ██ 3% concurrent:server 2.2s ████████████████████████████ 63% 执行时间(2015-11-20 15:54:12 UTC)连线:app 981ms█████████████28%连线:test 75ms█2%连线:sass 107ms██3%并发:服务器2.2秒████████████████████████████63%
Can someone help me? 有人能帮我吗? Thanks
谢谢
Of course it's too late, now is Now 20'16. 当然为时已晚,现在是现在20'16。
When I delete "grunt-contrib-compass": "^1.0.3",
in package.json
and delete the node_modules
dictionary. 当我在
package.json
删除"grunt-contrib-compass": "^1.0.3",
并删除node_modules
字典时。 And then typed npm install
and grunt serve
, same output show up. 然后输入
npm install
和grunt serve
,显示相同的输出。
So, just check is there something like "grunt-contrib-compass": "^***"
in your package.json
, if there are not(hopefully), just type: 因此,只需检查
package.json
中是否有类似"grunt-contrib-compass": "^***"
的东西,如果没有(希望如此),只需键入:
npm install grunt-contrib-compass --save-dev
npm install
grunt serve
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.