2017-02-27 74 views
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. 

敬请协助。

回答

0

您的宝石版本的'spring-watch-listen'是2.0.0。由于依赖性问题,这阻止了你能够捆绑你的宝石库。尝试更改Gemfile中的版本指令。只需在逗号后删除数字即可。

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

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

bundle install 

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

bundle update 
相关问题