运行rails s

时间:2017-09-27 11:04:18

标签: ruby-on-rails ruby rvm

我已经使用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>'

有人可以帮助我吗?

2 个答案:

答案 0 :(得分:0)

尝试

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

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

答案 1 :(得分:0)

检查thisthis

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