I trying to use grunt-contrib-sass and receive an error:
You need to have Ruby and Sass installed and in your PATH for this task to work.
But i'm sure that i already install Ruby and Sass. I have check it with below command
ruby -v and receive 1.9.3p545
sass -v and receive 3.4.5
So that make me sure i already install Ruby and Sass.
But when i use
grunt sass
I receive that error.
Please help me and i really appreciate it. Sorry my English is not so good.
This is my package.json
{
"name": "TEST",
"version": "0.0.1",
"dependencies":
{
"grunt": "~0.4.5",
"grunt-contrib-sass": "~0.8.1"
}
}
and this is 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