Reputation: 15
Somebody tried to help me in my app rails , he removed rbenv and other stuff i don't remind. And now when I'm doing bundle install i must enter my laptop password. Before it was not required.
the error messsage is :
" Your user account isn't allowed to install to the system Rubygems. You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to Rubygems using sudo.
Password: "
thanks for your help.
Upvotes: 1
Views: 5727
Reputation: 171
Worked for me:
$ sudo asdf uninstall ruby 2.6.5
$ asdf install ruby 2.6.5
$ gem install bundler
$ bundle
In some moment at Ruby installation I had used sudo
, so I needed to reinstall.
Upvotes: 0
Reputation: 5659
You are using system ruby, which is installed not only for your user, but system-wide. That's why you need sudo
and password.
Just install rbenv or rvm and everything will be back as it was
Upvotes: 3