[英]Bundler could not find compatible versions for gem “spring”
在運行bundle install --without production
在雲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.
請協助。
您的“ spring-watch-listen”寶石版本為2.0.0。 由於依賴性問題,這使您無法捆綁gem庫。 嘗試更改Gemfile中的版本指令。 只需刪除逗號后的數字即可。
#/path/to/project/Gemfile
gem 'spring-watch-listen', '2.0.0'
保存文件后,從Linux終端在應用程序根目錄中運行此命令。
bundle install
如果這樣不起作用,則可以嘗試從應用程序的根目錄運行以下命令。
bundle update
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.