gpt4 book ai didi

rubygems - 如何解决 faSTLane v 2.162.0 的 gem 安装冲突

转载 作者:行者123 更新时间:2023-12-05 02:48:58 26 4
gpt4 key购买 nike

我正在尝试将 faSTLane 更新到最新运行的版本:

sudo gem install fastlane -v 2.162.0

它出错了

ERROR:  While executing gem ... (Gem::DependencyResolutionError)
conflicting dependencies faraday (~> 0.12) and faraday (~> 1.0)
Activated faraday-1.0.0
which does not match conflicting dependency (~> 0.12)

Conflicting dependency chains:
fastlane (= 2.162.0), 2.162.0 activated, depends on
faraday (~> 1.0), 1.0.0 activated

versus:
fastlane (= 2.162.0), 2.162.0 activated, depends on
google-api-client (>= 0.37.0, < 0.39.0), 0.37.0 activated, depends on
googleauth (~> 0.9), 0.9.0 activated, depends on
faraday (~> 0.12)

Gems matching faraday (~> 0.12):
faraday-0.17.3

当我运行时

sudo gem list

显示:

...
faraday (1.0.0, 0.17.3)
...
google-api-client (0.38.0)
...
googleauth (0.9.0)
...

如果我卸载了 google-api-client 0.37.0 版本并且只安装了 0.38.0,为什么它说 google-api-client 0.37.0 已激活?

最佳答案

不确定为什么会发生问题,但我最终通过按顺序执行以下命令来修复它:

sudo gem uninstall faraday
sudo gem uninstall google-api-client
sudo gem uninstall googleauth
sudo gem update
sudo gem install fastlane -v 2.162.0

关于rubygems - 如何解决 faSTLane v 2.162.0 的 gem 安装冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64217215/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com