Bundle install tries to use cache file

前端 未结 5 1101
旧巷少年郎
旧巷少年郎 2021-02-09 22:40

When i try to do bundle install, my gem_path and gem_home point to /usr/local/rvm/gems/ which i don\'t have write access and it fails because of invalid permissions. because of

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-09 23:03

    okay, first of all, you could solve all this issues easily by using rvm (user installation), see http://rvm.io, if that is not an option, you could try using project-specific gem paths. for example i have the following bundler config file (~/.bundle/config)

    ---
    BUNDLE_PATH: .bundle
    BUNDLE_DISABLE_SHARED_GEMS: "1"
    

    which causes bundler to install all gems in a .bundle sub directory (inside your project folder, where you run bundle install). now, if you remember to use bundle exec for your bins (e.g. cap(istrano)), you're fine.

    if you somehow f*cked up your bundler / cache, try deleting the .bundle folder (in your project folder)

提交回复
热议问题