I am trying to install CocoaPods on my Mac device. When I run the following command:
sudo gem install cocoapods
Fetching: cocoapods-core-1.5.3.gem (100%) Successfully installed cocoapods-core-1.5.3 ERROR: Error installing cocoapods: invalid gem: package metadata is missing in /Library/Ruby/Gems/2.3.0/cache/cocoapods-deintegrate-1.0.2.gem
What is casing this issue and how do I install CocoaPods?