gpt4 book ai didi

ruby-on-rails - rbenv bundle install 尝试将 gems 安装到错误的路径中

转载 作者:数据小太阳 更新时间:2023-10-29 07:16:44 24 4
gpt4 key购买 nike

我收到以下错误消息:

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.

下面是我做过的一些检查:

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

问:为什么会尝试安装到系统 Rubygems?

最佳答案

我刚刚遇到了同样的问题,这为我解决了:

gem uninstall bundler
gem update --system
rbenv rehash
gem install bundler

很可能只有 gem update --system 是强制性的。

关于ruby-on-rails - rbenv bundle install 尝试将 gems 安装到错误的路径中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35112370/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com