$GEM_HOME is ignored by `gem install`

隐身守侯 提交于 2019-12-08 19:07:30

As Casper pointed out in the comment, my configuration was still getting --user-install from somewhere.

While my ~/.gemrc didn't exist, I checked in /etc/gemrc and found the following:

# --user-install is used to install to $HOME/.gem/ by default since we want to separate
#                pacman installed gems and gem installed gems
install: --user-install

To override this, I added to my ~/.gemrc:

install: --no-user-install

And now $GEM_HOME is respected.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!