【问题标题】:rvm PATH error running rails s运行 rails s 的 rvm PATH 错误
【发布时间】:2018-03-08 20:20:56
【问题描述】:

我用 rails 5 创建了一个 rails 应用程序,但是正在运行命令

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/ruby-2.4.2@global"]}) 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>'

谁能帮帮我?

【问题讨论】:

    标签: ruby-on-rails ruby rvm


    【解决方案1】:

    检查thisthis

    在您的终端上运行bundle update spring &amp;&amp; bundle exec spring binstub --remove --all &amp;&amp; bundle exec spring binstub --all

    【讨论】:

    • 它给了我“Bundler 试图更新 spring,但它的版本保持不变”
    【解决方案2】:

    试试

      bundle update spring && bundle exec spring binstub --remove --all && bundle exec spring binstub --all
    

    取自https://gist.github.com/webdev1001/e848abef8064c55c2f6443a282f75651

    【讨论】:

    • 它给了我“Bundler 试图更新 spring,但它的版本保持不变”
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-03
    • 1970-01-01
    • 2022-11-08
    • 2013-07-12
    • 2013-05-03
    相关资源
    最近更新 更多