Bundler installing gems in wrong location

前端 未结 4 763
迷失自我
迷失自我 2021-01-11 20:44

This is kind of bizarre. Any time I do a bundle install, Bundler installs all my gems to the path #{RAILS_ROOT}/json_pure/ruby/1.8/gems. I copied the Gemfile directly from a

4条回答
  •  隐瞒了意图╮
    2021-01-11 20:58

    Hmm.. just guessing that somehow when you originally installed bundler to. Try a reinstall with this :

    You can specify this setting when installing via bundle install /path/to/bundle. Bundler will remember where you installed the dependencies to on a particular machine for future installs, loads, setups, etc.

    Also this is Carl Huda's recommendations for troubleshooting :

    rm -rf ~/.bundle/ ~/.gem/ .bundle/ Gemfile.lock
    bundle install
    

提交回复
热议问题