zato
zato

Reputation: 15

Rails bundle install password required

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

Answers (2)

Lini
Lini

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

Roman Usherenko
Roman Usherenko

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

Related Questions