How to resolve “You need to have Ruby and Sass installed and in your PATH for this task to work” Warning?

后端 未结 8 1601
渐次进展
渐次进展 2020-12-07 15:22

I am in the process of setting up a new Mac for work. I have installed Grunt & Grunt CLI globally. Then I did a npm install inside a project folder to insta

相关标签:
8条回答
  • 2020-12-07 16:00

    You need to install Ruby and Sass as:

    For Ruby use command

    sudo apt-get install ruby-full
    

    And for Sass use command

    sudo gem install sass
    
    0 讨论(0)
  • 2020-12-07 16:05

    grunt-sass documentation is not very clear. To avoid the need of Ruby, you can try this:

    npm uninstall --save grunt-contrib-sass
    npm install --save node-sass grunt-sass

    Try this, It's work for me.

    reference

    0 讨论(0)
提交回复
热议问题