When I was install cocoapods
command: sudo gem install cocopods
warning:
tiantaodeMacBook-Pro:~ tiantao$ sudo gem install cocoapods
ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions for the /usr/bin directory.
How to Solve?
sudo gem install cocoapods -n /usr/local/bin
Similar Posts:
- Pod Install Error: Operation not permitted – /usr/bin/pod
- [Homebrew] has anyone encountered the warning generated by brew doctor[ The operating system is MAC 10.7.3]
- [Solved] Xcode 10 Error: library not found for -lstdc++.6.0.9
- [Solved] WARN checkPermissions Missing write access to /usr/local/lib/node_modules
- Bad owner or permissions on .ssh/config [How to Solve]
- [Solved] Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-9enuqi/My…
- Mac installation NPM install – G @Vue/cli error [How to Solve]
- Setting up CocoaPods master repo [How to Fix Stuck Issue]
- [Solved] Could not install packages due to an Environment Error: [Errno 13] Permission denied
- Mac: How to Solve global module install error