我正在为工作准备一台新的Mac电脑.我安装了Grunt&;Grunt CLI全球版.然后,我在一个项目文件夹中安装了npm install
个依赖项.
到目前为止没有问题,但当我try 运行sass:dist
任务时,我收到以下警告:
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.
我的理解是,我需要在更全局的级别上安装Ruby和Sass,才能运行此任务.由于我对终端的使用还很陌生,所以我快速搜索了一下,找出了PATH
是什么——似乎它是存储重要数据的某个系统路径(可以更改).
这是否意味着我可以简单地用sudo grunt install contrib-sass -g
来解决这个问题?那么Ruby呢?我一直认为它已经安装在OS X上了?