I installed gulp and everything seems fine except for this error when running the gulp mand. I get Error: You need to have Ruby and Compass installed and in your system PATH for this task to work. when issuing the mand. I am on mac osx 10.11 if that helps. My gulp was installed in /Users/Desktop/responsive/ .
Server started http://localhost:8080 [11:10:21] LiveReload started on port 35729 [11:10:21] { [Error: You need to have Ruby and Compass installed and in your system PATH for this task to work.] message: 'You need to have Ruby and Compass installed and in your system PATH for this task to work.', showStack: false, showProperties: true, plugin: 'gulp-pass', __safety: { toString: [Function: bound ] } } Any ideas to what the issue is. All help appreciated.
I installed gulp and everything seems fine except for this error when running the gulp mand. I get Error: You need to have Ruby and Compass installed and in your system PATH for this task to work. when issuing the mand. I am on mac osx 10.11 if that helps. My gulp was installed in /Users/Desktop/responsive/ .
Server started http://localhost:8080 [11:10:21] LiveReload started on port 35729 [11:10:21] { [Error: You need to have Ruby and Compass installed and in your system PATH for this task to work.] message: 'You need to have Ruby and Compass installed and in your system PATH for this task to work.', showStack: false, showProperties: true, plugin: 'gulp-pass', __safety: { toString: [Function: bound ] } } Any ideas to what the issue is. All help appreciated.
Share Improve this question asked Mar 5, 2017 at 17:54 skyper12345skyper12345 751 gold badge2 silver badges12 bronze badges 1-
1
you need to install ruby on your system, after this install gem-pass using
gem install pass
, Refer this link Installing Ruby – Gaurav Kumar Singh Commented Mar 5, 2017 at 18:01
1 Answer
Reset to default 6Ruby es preinstalled on Mac machines so you shouldn't need to install it. If you have not installed the pass gem you'll need to do so. To check that you have these...
Check ruby with $ ruby -v
Check pass with $ pass version
For both make sure you get a error free response that lists a version. If you don't have either or them installed, install them (ruby first if you don't have them both)...
Install ruby
There are a lot of ways to do this. I remend using homebrew. Once you have it it is super useful for installing a lot of things. You'll need to google how to install it if you don't have it. There are many other ways to install ruby, see the official docs. Using homebrew...
$ brew install ruby
install pass
Now that you have ruby (or if you already did) you can easily install pass...
$ gem install pass
This mand may need to be run using sudo
. You'll know if you get a permissions error. After installing restart terminal and check again, then try gulp.