I get the following error message:
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.
And here are some inspections that I've done:
me at me-ui-MacBook-Pro in ~
$ rbenv versions
system
2.1.6
2.2.3
* 2.3.0 (set by /Users/me/.rbenv/version)
2.3.0-dev
me at me-ui-MacBook-Pro in ~
$ rbenv version
2.3.0 (set by /Users/me/.rbenv/version)
me at me-ui-MacBook-Pro in ~
$ gem environment home
/Users/me/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0
Q: why does it trying to install to system Rubygems?
In the invoked popup, start typing bundler, select bundle install and press Enter . Select Tools | Bundler | Install from the main menu. Open the Gemfile, place the caret at any highlighted gem missing in the project SDK and press Alt+Enter . Select Install missing gems using 'bundler' and press Enter .
Show activity on this post. I know that when using gem install , the gem will be stored under /home/username/. rvm/gems/, under which gemset the gem was installed.
Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.
I just had the same problem and this solved it for me:
gem uninstall bundler
gem update --system
rbenv rehash
gem install bundler
Most likely only gem update --system
were mandatory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With