gpt4 book ai didi

ruby - 无法激活 aws-sdk-v1-1.67.0,因为 json-2.1.0 与 json (~> 1.4) 冲突 (Gem::ConflictError)

转载 作者:行者123 更新时间:2023-12-05 08:08:09 25 4
gpt4 key购买 nike

有谁知道如何解决这个 ruby​​ 错误?我尝试搜索答案,但谷歌上没有太多信息。有人知道如何解决这个问题吗?

    computer:adminsite abc$ ruby script/build.rb -a ~/Library/Android/sdk/ -t -v -p -f -c HJMKCT8H -s /Users/abc/code/cloudTv/OneMainstream/ -b /tmp/ -d amazon_fire_tv
Traceback (most recent call last):
12: from script/build.rb:12:in `<main>'
11: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
10: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
9: from /Users/abc/1ms-platform-master/adminsite/lib/build.rb:13:in `<top (required)>'
8: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
7: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
6: from /Users/abc/1ms-platform-master/adminsite/lib/amz/s3.rb:2:in `<top (required)>'
5: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:39:in `require'
4: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
3: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:217:in `try_activate'
2: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems.rb:224:in `rescue in try_activate'
1: from /Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:1441:in `activate'
/Users/abc/.rvm/rubies/ruby-2.5.1/lib/ruby/site_ruby/2.5.0/rubygems/specification.rb:2332:in `raise_if_conflicts': Unable to activate aws-sdk-v1-1.67.0, because json-2.1.0 conflicts with json (~> 1.4) (Gem::ConflictError)
computer:adminsite abc$

最佳答案

没有提供有关您的项目的信息。我想您正在使用 Rails/Capistrano/AWS(和我一样),这解决了我的问题:

使用这个 gem 代替 https://github.com/fernandocarletti/capistrano-aws

这个https://github.com/forward3d/cap-ec2

关于ruby - 无法激活 aws-sdk-v1-1.67.0,因为 json-2.1.0 与 json (~> 1.4) 冲突 (Gem::ConflictError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52084291/

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