解决gem install bundler-1.17.3失败的问题

GitHub地址

终端执行gem install bundler:1.17.3会失败,前面加上sudo也不行,报/usr/bin没有写入权限

Fetching bundler-1.17.3.gem
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.

解决方法和CocoaPods类似,如下:

gem install bundler:1.17.3 -n /usr/local/bin

猜你喜欢

转载自blog.csdn.net/mlcldh/article/details/101771260