2017-02-27 169 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 
相關問題