2

在云 9 上运行后bundle install --without production,这是我得到的错误:

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "spring":
  In snapshot (Gemfile.lock):
    spring (= 2.0.1)

  In Gemfile:
    spring

    spring-watcher-listen (= 2.0.0) was resolved to 2.0.0, which depends on
      spring (~> 1.2)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

请协助。

4

1 回答 1

0

您的“spring-watch-listen” gem 版本为 2.0.0。由于依赖性问题,这会阻止您捆绑您的 gem 库。尝试更改 Gemfile 中的版本指令。只需删除逗号后的数字。

 #/path/to/project/Gemfile
 gem 'spring-watch-listen', '2.0.0'

保存文件后,从应用程序根目录中的 linux 终端运行此命令。

  bundle install

如果这不起作用,您可以尝试从应用程序的根目录运行以下命令。

 bundle update
于 2017-03-04T04:01:23.290 回答