ruby 飞翼:cocoapods没有安装

vzgqcmou  于 2023-08-04  发布在  Ruby
关注(0)|答案(2)|浏览(148)

我正在运行此命令

sudo gem install cocoapods

字符串
但是得到这个错误

ERROR:  Error installing cocoapods:
    The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.4. Try installing it with `gem install activesupport -v 6.1.7.4` and then running the current command again
    activesupport requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.


请帮助如何修复它

ki1q1bka

ki1q1bka1#

你需要仔细阅读你刚刚发布的错误

Try installing it with `gem install activesupport -v 6.1.7.4` and then running the current command again

字符串
并且您的Ruby版本需要更新到2.7.0或更高版本

2guxujil

2guxujil2#

试试这个

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

个字符

相关问题