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 trialAleksandra Klochko
9,511 PointsBundle install require password to install gems every time
Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo.
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHI Aleksandra,
You didn't specify the type of system (and environment) you are using. But...
This will only happen if you are logged in as a user and not the root administrator
. Installing Gems is a root level activity and requires the same privileges. If you cannot log in as root
or use the sudo
command (will require the root password), then you will not be able to install the Gems into RubyGems.
:)
Aleksandra Klochko
9,511 PointsAleksandra Klochko
9,511 PointsHi, Jason! Thank you for your reply. My system is ubuntu. My environment was ok (I am using RVM). But I was playing around during treehouse console training and now I have this mistake and don't know how to fix it