Could not find ‘json‘ (>= 1.5.1) among 45 total gem(s)

Posted iOSTianNan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not find ‘json‘ (>= 1.5.1) among 45 total gem(s)相关的知识,希望对你有一定的参考价值。

通过rvm包管理器,目前安装的ruby版本如下:

~ rvm list
   ext-ruby-2.6.8_macos [ universal ]
   ruby-2.6.6 [ x86_64 ]
=* ruby-2.7.0 [ x86_64 ]
   ruby-2.7.4 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

在 ruby-2.6.6版本下,
执行 pod --version

~ pod --version
1.11.3

但是在切换到

~ rvm use ruby-2.7.0 --default

之后,

pod install 就报错

Could not find 'json' (>= 1.5.1) among 45 total gem(s)....

解决办法.

重装gem

卸载gem

gem uninstall --all

没有权限
sudo gem uninstall --all

重装gem

sudo gem install -n /usr/local/bin cocoapods

测试

~ pod --version
1.11.3

以上是关于Could not find ‘json‘ (>= 1.5.1) among 45 total gem(s)的主要内容,如果未能解决你的问题,请参考以下文章

Flink Could not find any factory for identifier ‘json‘ that implements DeserializationFormatFactory

Could not find ‘json‘ (>= 1.5.1) among 45 total gem(s)

Could not find ‘json‘ (>= 1.5.1) among 45 total gem(s)

Could not find JSON in http://updates.jenkins-ci.org/update-center.json?id=default&version=2.7.4

ember中Could not find module `ember` imported from `mgapp/app问题解决

Could not find a transformer to transform "SimpleDataType{type=org.mule.transport.NullPayload(示