Tuesday, 4 October 2016

after macOS Sierra 10.12 update, get error of grunt serve: You need to have Ruby and Sass installed and in your PATH for this task to work.





Running "concurrent:server" (concurrent) task
    Warning: Running "sass:server" (sass) task
    Warning: 
    You need to have Ruby and Sass installed and in your PATH for this task to work.
    More info: https://github.com/gruntjs/grunt-contrib-sass
     Use --force to continue.
    
    Aborted due to warnings.
    
    
    Execution Time (2016-10-04 19:05:57 UTC)
    loading tasks  83ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 93%
    sass:server     6ms  ▇▇▇▇ 7%
    Total 89ms Use --force to continue.
        

        Aborted due to warnings.





Reason:

That because after you updated your OS, your Mac is now using a new Ruby.

you have to install Sass again.


Solution:

Run this:


sudo gem install sass

You can not run it without sudo, because you are using the system Ruby which is only be used my the OS, if you want to use it , you must use root.

















No comments:

Post a comment