Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRyan Moxon
43 PointsBundle install
When I remove the gem 'rollbar' from Gemfile and run bundle install I get the error 'rollbar' has been deleted from the Gemfile.
Ruby scans Gemfile.lock for dependencies and previous gem installatiions which tirggers the error.
2 Answers
Mike Hickman
19,817 PointsYou can delete your Gemfile.lock, then run bundle install
and it will re-generate the Gemfile.lock based on your current Gemfile.
If you don't feel comfortable with that, make a backup copy of your Gemfile.lock first and then do it. Good luck.
Ryan Moxon
43 PointsThank you for the replies! I figured out that I needed to login as the user instead of root.
I ran bundle install and everything worked great.
Only problem I have is removing a certain gem from the dependencies list now. When I remove the gem from Gemfile and run bundle install I get the 'gem has been deleted' error.
So I may have to delete Gemfile.lock and run bundle install but it's to risky in my situation. My have to run the operations in a development environment.