Warning: Running “compass:server” (compass) task

2019-04-17 20:22发布

D:\Projects\mallspk>grunt serve
Running "serve" task

Running "clean:server" (clean) task
>> 0 paths cleaned.

Running "wiredep:app" (wiredep) task

Running "wiredep:test" (wiredep) task

Running "wiredep:sass" (wiredep) task

Running "concurrent:server" (concurrent) task
    Warning: Running "compass:server" (compass) task
Warning: Command failed: 'compass.bat' is not recognized as an internal or exter
nal command,
    operable program or batch file.
     Use --force to continue.

I have install the Yo angular and runs the followings commands:

npm install grunt --save-dev
npm install -g grunt-contrib-compass 
npm install -g compass
npm install
bower install
npm install  grunt-google-cdn

and when i run the command grunt serve i have got this error. i have latest node and npm install with latest grunt and yo.

8条回答
祖国的老花朵
2楼-- · 2019-04-17 21:09

I had ruby install @squiroid. I forget to run gem install compass. That worked for me.

查看更多
【Aperson】
3楼-- · 2019-04-17 21:12

I had the same problem

"yo angular" with sass option will use the compass, which is a ruby gem.

Install the ruby, and the compass

In windows system we also need to set the path of ruby. Add the ruby/bin to path

Then "grunt serve" works!

查看更多
登录 后发表回答