Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sass - Error Installing [duplicate]

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
like image 782
Joey Orlando Avatar asked Nov 27 '22 16:11

Joey Orlando


1 Answers

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!

like image 200
Leo Avatar answered Dec 09 '22 16:12

Leo