Soil does not work, compass error

My node started to behave oddly. So I uninstalled it and installed it again. Now I can no longer grunt serve

 Pers-MacBook-Air:clientMD perstrom$ 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 Error: invalid option: --import-path=./bower_components Usage: compass compile [path/to/project] [path/to/project/src/file.sass ...] [options] Description: compile project at the path specified or the current director if not specified. 

I created a project with yo angular . It worked before I reinstalled node.

+5
source share
2 answers

The following is fixed for me; try updating the compass by running

 // From the official documentation at http://compass-style.org/install/ gem install compass cd <myproject> compass install compass 
+8
source

If you want to avoid Ruby and Compass all together, you can add libsass with a few changes listed here: https://github.com/yeoman/generator-angular/issues/819#issuecomment-100379175

Basically:

1) Install grunt-sass: npm install --save-dev grunt-sass

2) Replace the "compass" command with the definition of "sass" in the link

3) Replace “compass” with “sass” in the observer command

4) Replace “compass” with “sass” in the parallel command

I hope it will be added to the generator as an option from the very beginning. Hope this helps!

+1
source

Source: https://habr.com/ru/post/1213225/


All Articles