Noah_J.C_Lee
Noah_J.C_Lee

Reputation: 177

how to fix Errno::EACCES: Permission denied @ dir_s_mkdir -

when I tried bundle install

Errno::EACCES: Permission denied @ dir_s_mkdir -
/Users/noah/.rbenv/versions/2.7.3/lib/ruby/gems/2.7.0/extensions/arm64-darwin-21/2.7.0/racc-1.5.2
An error occurred while installing racc (1.5.2), and Bundler cannot continue.
Make sure that `gem install racc -v '1.5.2'` succeeds before bundling.

this thing keeps happening.. how can i solve this...?

Upvotes: 2

Views: 10298

Answers (1)

Heitara
Heitara

Reputation: 452

If you are using rbenv.

This command from the linked SoF post solves it.

sudo chown -R <your_user> $HOME/.rbenv

Upvotes: 3

Related Questions