I had the Ruby gem Sass installed recently and have been frequently using it for an app I'm working on. Today I went to go run sass --watch scss:css as I normally would and noticed I got the following error:
-bash: sass: command not found
I then tried running the following line and got this output:
~$ sudo gem install sass
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/sass
I would consider myself a novice when it comes to interpreting shell/bash errors, any suggestions as to what might be causing this?
Update
I've since tried @jperelli's suggestion and got the following (ps I am on Mac OS):
~$ sudo gem update bundler
Updating installed gems
Updating bundler
Fetching: bundler-1.10.5.gem (100%)
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/bundle
If you have still this problem, you may try:
$ sudo gem install -n /usr/local/bin sass
I had almost the same issue (for compass) with the latest update to OS X El Capitan, and it worked for me. Just use it like this:
$ sudo gem install -n /usr/local/bin gem_package_name
Good Luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With