[英]Ruby on Rails Bundler issues LoadError
I believe I am having some PATH issues for my gems. 我相信我的宝石遇到一些PATH问题。
I am using rvm (version 1.29.3) with ruby (version 2.4.1) and rails (version 5.1.4) 我正在将rvm(1.29.3版)与ruby(2.4.1版)和rails(5.1.4版)一起使用
I tried to run rails new myapp
to which I get the following LoadErrors: 我尝试运行rails new myapp
,并收到以下LoadErrors:
remove config/initializers/new_framework_defaults_5_1.rb
run bundle install
/Users/fabienbessez/.rvm/rubies/ruby-2.4.1/bin/ruby: No such file or directory
-- /Users/fabienbessez/.rvm/rubies/ruby-
2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/exe/bundle (LoadError)
run bundle exec spring binstub --all
/Users/fabienbessez/.rvm/rubies/ruby-2.4.1/bin/ruby: No such file or directory
-- /Users/fabienbessez/.rvm/rubies/ruby
2.4.1/lib/ruby/gems/2.4.0/gems/bundler-1.16.0/exe/bundle (LoadError)
I get the same error when I try to then run bundle install
当我尝试然后运行bundle install
时出现相同的错误
I checked the contents of ~/.rvm/rubies/ruby-2.4.1/lib/ruby/gems/2.4.0/gems
to which I found that bundler-1.15.4
but not bundler-1.16.0
. 我检查了~/.rvm/rubies/ruby-2.4.1/lib/ruby/gems/2.4.0/gems
的内容,发现其中包含bundler-1.15.4
而不是bundler-1.16.0
。 I assume that that is the issue. 我认为这就是问题所在。 But I can't figure out how to update those gems. 但是我不知道如何更新这些宝石。 gem install bundler
says it has installed bundler 1.16.0 but this is not being updated. gem install bundler
表示已安装捆绑程序1.16.0,但尚未更新。
Any ideas?? 有任何想法吗??
Thanks! 谢谢!
您是否尝试过使用gem uninstall bundler
卸载所有旧版本的gem uninstall bundler
?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.