bundle install
when I migrated the project, so today I expected it to just work. But it did not.bundle install
again, and noticed that the command was returning some errors about certain files not being writable. This is because of the ‘rootless‘ feature in Mac OS, which prevents anybody, even root, from writing to certain locations. One of those locations is /usr/bin,
which bundle was trying to write to to add the gem executable files. No wonder I was getting a not-istalled error for sass. However, I hadn’t really realize that just jet./usr/bin
.gem
where it should install gems. I created a gemrc file, and tried bundle install. The error didn’t get fixed.bundle install
, and there I found that you can specify where gems should be placed, and where the executable files should be placed. I finally ran the commandbundle install --force --path=~/ --binstubs=~/bin
~/bin
directory, and found that the bundle file was owned by root. I changed ownership of the file to me, and this finally got everything working correctly.