美文网首页demo
安装bundler出错处理

安装bundler出错处理

作者: liuxingzi | 来源:发表于2018-02-07 16:56 被阅读29次

最简单安装

gem install bundler

出错!

Fetching: bundler-1.16.1.gem (100%)

ERROR:  While executing gem ... (Gem::FilePermissionError)

    You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

再改用su

sudo gem install bundler

还不行

Fetching: bundler-1.16.1.gem (100%)

ERROR:  While executing gem ... (Gem::FilePermissionError)

    You don't have write permissions for the /usr/bin directory.

那就只能安装到/usr/local/bin

sudo gem install -n /usr/local/bin bundler

其它很多gem的安装时也都会遇到没权限安装到usr/bin下的

相关文章

网友评论

    本文标题:安装bundler出错处理

    本文链接:https://www.haomeiwen.com/subject/nyrazxtx.html