gem installでpermissionのエラー出た時の簡易的な回避方法
以下のようなエラーが出た時の回避方法。
code:console
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
以下を~/.bashrcなどに書き足す。
code:bash
export GEM_HOME="$HOME/.gem"