Bundler: You must use Bundler 2 or greater with this lockfile

前端 未结 18 2431
小蘑菇
小蘑菇 2020-12-04 14:13

I\'m working with heroku and every time I try to push my app this message shows out:

remote: Compressing source files... done.
remote: Building source:
remo         


        
18条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 14:35

    For people who are not using Heroku:

    I Tried everything and I was still receiving this error. even this link didn't help me: https://github.com/jekyll/jekyll/issues/7463

    So this was my solution:

    Push your code on GitHub. delete project folder create a new folder and pull your code bundle install That's it. bundler update --bundler was not helping me at the end and I didn't use it.

    One more important thing: I updated my ruby version but I was getting this error because my RVM default version was an old version. even when you use rvm use VERSION_NUMBER -- default will not help because as soon as you log out from terminal the default version will change to the old one and you will have the same issue.

    For this you can use this answer: How to set default Ruby version with RVM?

    or just uninstall old ruby version with rvm uninstall X.X.X and install the new one with rvm install X.X.X and make it default by rvm use --default X.X.X.

    cheers.

提交回复
热议问题