{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/86","labels_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/86/comments","events_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/86/events","html_url":"https://github.com/sindresorhus/gulp-ruby-sass/issues/86","id":37580552,"number":86,"title":"Error: spawn ENOENT","user":{"login":"samarpanda","id":802163,"avatar_url":"https://avatars.githubusercontent.com/u/802163?v=3","gravatar_id":"","url":"https://api.github.com/users/samarpanda","html_url":"https://github.com/samarpanda","followers_url":"https://api.github.com/users/samarpanda/followers","following_url":"https://api.github.com/users/samarpanda/following{/other_user}","gists_url":"https://api.github.com/users/samarpanda/gists{/gist_id}","starred_url":"https://api.github.com/users/samarpanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samarpanda/subscriptions","organizations_url":"https://api.github.com/users/samarpanda/orgs","repos_url":"https://api.github.com/users/samarpanda/repos","events_url":"https://api.github.com/users/samarpanda/events{/privacy}","received_events_url":"https://api.github.com/users/samarpanda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2014-07-10T16:35:55Z","updated_at":"2015-03-08T15:31:43Z","closed_at":"2014-08-29T20:02:29Z","body":"I am getting error while trying to use `gulp-ruby-sass`. My Gulpfile.js\r\n\r\n```js\r\n  var gulp = require('gulp'),\r\n  sass = require('gulp-ruby-sass');\r\n\r\n  gulp.task('default', function(){\r\n    return gulp.src('www/css/scss/app.scss')\r\n      .pipe(sass())\r\n      .pipe(gulp.dest('www/css'));\r\n});\r\n```\r\nThen i run `gulp`. I get this error\r\n\r\n```cmd\r\nsp:sp samar$ gulp\r\n[21:49:46] Using gulpfile ~/Sites/sp/Gulpfile.js\r\n[21:49:46] Starting 'default'...\r\n[21:49:46] Finished 'default' after 10 ms\r\n\r\n/Users/samar/Sites/sp/node_modules/gulp-ruby-sass/index.js:101\r\n\t\t\tvar msg = err.trim();\r\n\t\t\t              ^\r\nTypeError: Object Error: spawn ENOENT has no method 'trim'\r\n    at ChildProcess.<anonymous> (/Users/samar/Sites/sp/node_modules/gulp-ruby-sass/index.js:101:18)\r\n    at ChildProcess.EventEmitter.emit (events.js:95:17)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:787:12)\r\n```\r\n\r\nMy configuration details:\r\n\r\n```cmd\r\nsp:sp samar$ gem -v\r\n2.2.2\r\n\r\nsp:sp samar$ node -v\r\nv0.10.22\r\n\r\nsp:sp samar$ sass -v\r\nSass 3.3.6 (Maptastic Maple)\r\n\r\nsp:sp samar$ gulp -v\r\n[21:48:13] CLI version 3.8.6\r\n[21:48:13] Local version 3.8.6\r\n\r\nsp:sp samar$ gem list | grep sass\r\nsass (3.3.6, 3.3.5)\r\n\r\nsp:sp samar$ ruby -v\r\nruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]\r\n\r\nsp:sp samar$ cat www/css/scss/app.scss\r\n$color: green;\r\nbody{\r\n\tcolor: $color;\r\n\r\nsp:sp samar$ sass www/css/scss/app.scss\r\nbody {\r\n  color: green; }\r\n```\r\n\r\nAny ideas how can i fix this / where am i going wrong here?\r\n"},"comment":{"url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/comments/77755772","html_url":"https://github.com/sindresorhus/gulp-ruby-sass/issues/86#issuecomment-77755772","issue_url":"https://api.github.com/repos/sindresorhus/gulp-ruby-sass/issues/86","id":77755772,"user":{"login":"robwierzbowski","id":925735,"avatar_url":"https://avatars.githubusercontent.com/u/925735?v=3","gravatar_id":"","url":"https://api.github.com/users/robwierzbowski","html_url":"https://github.com/robwierzbowski","followers_url":"https://api.github.com/users/robwierzbowski/followers","following_url":"https://api.github.com/users/robwierzbowski/following{/other_user}","gists_url":"https://api.github.com/users/robwierzbowski/gists{/gist_id}","starred_url":"https://api.github.com/users/robwierzbowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robwierzbowski/subscriptions","organizations_url":"https://api.github.com/users/robwierzbowski/orgs","repos_url":"https://api.github.com/users/robwierzbowski/repos","events_url":"https://api.github.com/users/robwierzbowski/events{/privacy}","received_events_url":"https://api.github.com/users/robwierzbowski/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T15:31:43Z","updated_at":"2015-03-08T15:31:43Z","body":"Agreed. This error can also be that the Sass file doesn't exist at the path you've specified, IIRC. We should add a little more information to this error message to help people, cause it seems to happen often."}}