2
我試圖用咕嚕-的contrib-青菜和收到一個錯誤:SASS任務:你需要有紅寶石和薩斯安裝
You need to have Ruby and Sass installed and in your PATH for this task to work.
但我敢肯定,我已經安裝Ruby和薩斯。 我有以下命令
ruby -v and receive 1.9.3p545
sass -v and receive 3.4.5
檢查,所以這讓我相信,我已經安裝Ruby和薩斯。
但是當我使用
grunt sass
我收到錯誤。
請幫助我,我真的很感激它。 對不起,我的英語不太好。
這是我的package.json
{
"name": "TEST",
"version": "0.0.1",
"dependencies":
{
"grunt": "~0.4.5",
"grunt-contrib-sass": "~0.8.1"
}
}
,這是gruntfile.js
module.exports = function(grunt)
{
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.initConfig
({
sass:
{
dist:
{
options:
{
style: 'compressed'
},//options
files:
{
'css/style.css': 'component/sass/style.scss'
}//files
}//dist
}//sass
})//initConfig
}//exports
OP說已經安裝了Sass。 – cimmanon 2015-02-03 11:11:37
@cinnamon這很好,但要解決路徑問題,應該做一個新的安裝。 – 2015-02-04 11:53:27