Error installing cocoapods "sudo gem install cocoapods" MacOs Catalina
Seems like you don't have access to usr/bin directory. i have been there!!
please try below command.
sudo gem install -n /usr/local/bin cocoapods
this should work. Thanks!!
Please refer this post more information about access rights.
I think you don't have the commande lines tool on Xcode...
sudo xcode-select --resetxcode-select --install
Keep us posted...
Run the following on terminal:
brew install cocoapods
If you don't have Homebrew yet, run this:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"