RVM PATH错误运行轨道小号
问题描述:
我已经创建了轨道5 Rails应用程序,但运行命令RVM PATH错误运行轨道小号
rails s
我得到这个错误
Array values in the parameter to `Gem.paths=` are deprecated.
Please use a String or nil.
An Array ({"GEM_PATH"=>["/home/davide/.rvm/gems/ruby-2.4.2", "/home/davide/.rvm/gems/[email protected]"]}) was passed in from bin/rails:3:in `load'
=> Booting WEBrick
=> Rails 4.2.7.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
/home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
Exiting /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:124:in `block (2 levels) in <class:Numeric>': stack level too deep (SystemStackError)
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
from /home/davide/.rvm/gems/ruby-2.4.2/gems/activesupport-4.2.7.1/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
... 5010 levels...
from /home/davide/Scrivania/Led2/bin/spring:13:in `require'
from /home/davide/Scrivania/Led2/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
任何人都可以帮助我吗?
答
尝试
bundle update spring && bundle exec spring binstub --remove --all && bundle exec spring binstub --all
从https://gist.github.com/webdev1001/e848abef8064c55c2f6443a282f75651
它给了我“Bundler试图更新春天,但它的版本保持不变” –