Grunt sass没有安装ruby和sass? [英] Grunt sass don't have ruby and sass installed?
问题描述
当我想将我的sass任务与grunt一起使用时,我会立即收到此错误:
When I want to use my sass task with grunt I immediately get this error:
警告:您需要在PATH中安装Ruby和Sass才能使此任务起作用.更多信息: https://github.com/gruntjs/grunt-contrib-sass 使用--force继续.
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.
当我在Macbook上使用我的项目时,我没有问题,但是在iMac上使用它时,我收到了此消息.我尝试使用几种方法重新安装sass几次,但它们似乎都不起作用.有人有主意吗?我的iMac很新,所以我可能忘记了什么?
When I use my project on my Macbook I have no problems but when I use it on my iMac I get this message. I tried reinstalling sass several times by using several methods but none of them seem to work. Anyone has an idea? My iMac is pretty new so I might forgot something?
谢谢!
推荐答案
解决方案是使用 sudo gem install sass
安装Sass.
Solution was to install Sass with sudo gem install sass
.
这篇关于Grunt sass没有安装ruby和sass?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!