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

后端 未结 8 1646
渐次进展
渐次进展 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: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

提交回复
热议问题