开发者

Accidentally changed where my gems are being installed

开发者 https://www.devze.com 2023-03-13 19:01 出处:网络
When running bundler, I normally type: bundle install However, I accidentally added another string after this, turning into the likes of:

When running bundler, I normally type:

bundle install

However, I accidentally added another string after this, turning into the likes of:

bundle in开发者_JAVA百科stall foobar

Now all my gems are being installed to ./foobar. Even if I try to run bundle install without the third param, my gems are installed to ./foobar again anyway. I can't seem to find any help on addressing this anywhere, and I'm not sure if it's an effect of bundler, rvm, etc.

How do I go about fixing this?


Figured it out and thought I'd share for anyone else running into this. It created a config file within the current path under .bundle/config, which contained a line reading: BUNDLE_PATH: foobar.

To fix it, I just did:

rm -rf .bundle
0

精彩评论

暂无评论...
验证码 换一张
取 消