As I have mentioned in my first post here, I will write also about other things not only Sitecore, as in my daily work I do work with other things too.
So, let’s get into it.
Sometimes I need to build in my local environment the frontend project that my colleagues create in order to make small changes/adjustments or test the backend work much better.
And one some project, true, some old ones I was getting this error when building with grunt the project :
Warning: Running "compass:dist" (compass) task Warning: not found: compass Use --force to continue.
I have tried many things on my environment to fix this and seems that a combination of things let to fix this problem, so now I can build old frontend projects:
- Un-install all versions of Ruby from the working computer
- Install latest version of Ruby into the Windows machine with the option “Add Ruby executable to your PATH” selected and then restart the computer
- Install Compass and Sass on your computer. Open command prompt and run the following commands:
-
-
gem update --system gem install compass gem install sass
-
-
- Update compass in your project with this command from inside your project dir
-
-
npm install grunt-contrib-compass --save-dev
-
-
I hope it works for you.
Good luck.
3 replies on “grunt build with compass fails on some environments, how I fix it”
Some truly nice and useful information on this website, besides I conceive the design has great features.
LikeLike
I had the compass installed but still I was getting the error. Then I did the `update` and after that installed compass again and then it worked 😀
So – thanks for the useful tip.
LikeLike
Thanks for the help – worked perfectly!
LikeLike