Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 搭建新的RubyonRails应用程序导致spring错误_Ruby On Rails - Fatal编程技术网

Ruby on rails 搭建新的RubyonRails应用程序导致spring错误

Ruby on rails 搭建新的RubyonRails应用程序导致spring错误,ruby-on-rails,Ruby On Rails,我曾尝试在本地运行Rails应用程序,但发现部署的Rails应用程序版本已停止运行,但出现以下错误。困惑的是,我试图构建一个新的Rails应用程序,但却出现了同样的错误。任何帮助都将不胜感激 Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4). We suggest you to upgrade to the version that

我曾尝试在本地运行Rails应用程序,但发现部署的Rails应用程序版本已停止运行,但出现以下错误。困惑的是,我试图构建一个新的Rails应用程序,但却出现了同样的错误。任何帮助都将不胜感激

Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4).
We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined).

This is probably because you generated binstubs with Spring 1.0, and you now have a Spring version > 1.0 on your system.
To solve this, upgrade your bundle to the latest Spring version and then run `bundle exec spring binstub --all` to regenerate your binstubs.
This is a one-time step necessary to upgrade from 1.0 to 1.1.

Here's the backtrace:

/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:55:in `load'
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:319:in `block in load'
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:291:in `load_dependency'
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/dependencies.rb:319:in `load'
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in `<main>'
/home/user/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/home/user/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
/home/user/code/rails-who/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
警告:Bundler的运行版本(2.1.2)早于创建锁文件的版本(2.1.4)。
我们建议您通过运行“gem install bundler:2.1.4”升级到创建锁文件的版本。
您已经尝试在Spring已经加载时调用它(即定义了Spring常量)。
这可能是因为您使用Spring1.0生成了binstubs,现在系统上的Spring版本>1.0。
要解决这个问题,请将您的bundle升级到最新的Spring版本,然后运行“bundle exec Spring binstub--all”重新生成您的binstub。
这是从1.0升级到1.1所必需的一次性步骤。
这是回溯:
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:55:在'load'中
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.6/lib/bootsnap/load\u path\u cache/core\u ext/kernel\u require.rb:55:在'load'中
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.2/lib/active\u support/dependencies.rb:319:in'block in load'
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.2/lib/active\u support/dependencies.rb:291:在“加载\u依赖项”中
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/activesupport-6.0.2.2/lib/active\u support/dependencies.rb:319:在“加载”中
/home/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/spring-2.1.0/lib/spring/binstub.rb:11:in`'
/home/user/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems/core\u ext/kernel\u require.rb:92:in'require'
/home/user/.rbenv/versions/2.7.0/lib/ruby/2.7.0/rubygems/core\u ext/kernel\u require.rb:92:in'require'
/home/user/code/rails who/bin/spring:15:in`'
箱子/轨道:3:在“装载”中
箱子/轨道:3:in`'

您是否遵循了警告信息的说明

Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4).
We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined).

This is probably because you generated binstubs with Spring 1.0, and you now have a Spring version > 1.0 on your system.
To solve this, upgrade your bundle to the latest Spring version and then run `bundle exec spring binstub --all` to regenerate your binstubs. This is a one-time step necessary to upgrade from 1.0 to 1.1.
我会尝试警告信息中建议的两件事:

1.)运行命令
gem安装bundler:2.1.4

2.)重新生成您的binstubs
bundle exec spring binstub——您是否遵循了警告消息说明

Warning: the running version of Bundler (2.1.2) is older than the version that created the lockfile (2.1.4).
We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.1.4`.
You've tried to invoke Spring when it's already loaded (i.e. the Spring constant is defined).

This is probably because you generated binstubs with Spring 1.0, and you now have a Spring version > 1.0 on your system.
To solve this, upgrade your bundle to the latest Spring version and then run `bundle exec spring binstub --all` to regenerate your binstubs. This is a one-time step necessary to upgrade from 1.0 to 1.1.
我会尝试警告信息中建议的两件事:

1.)运行命令
gem安装bundler:2.1.4

2.)重新生成binstubs
bundle exec-spring-binstub-all
yes。我试过了,但没有包括在内,因为它是作为警告而不是错误发出的。同样,这样做也不会让警告因为某种奇怪的原因消失。是的。我试过了,但没有包括在内,因为它是作为警告而不是错误发出的。同样,这样做并不会让警告因为某种奇怪的原因而消失。