Bundle install installs gems in ./mysql2 folder

一曲冷凌霜 提交于 2019-12-02 23:05:06
Josh Kovach

It's actually deprecated behavior that I had a problem with a couple weeks ago. It's likely you ran the command bundle install mysql, which actually runs bundle install --path mysql and permanently sets its install directory to ./mysql2 (as little as that makes sense). The easiest way to fix this from happening is by running bundle install --system, and that should restore your default install directory. Next time if you want to upgrade a single gem, use the command bundle update mysql.

I'm not sure why it's installing all to a mysql2 folder, but to get it back to how it should be run this: bundle install --path vendor

You should then be able to safely delete the mysql2 folder and your gems will be where they should be. Hopefully somebody else will be able to explain why it installed into that other folder.

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