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 trial

PHP

Vagrant, command not found

I've installed, uninstalled and reinstalled Vagrant a couple of times. When I type vagrant -v in terminal, I get "command not found." The Vagrant folder is in my Applications folder, so I know it was installed. It worked in my Personal user account (and still does), then I decided to create a Developer user so I wouldn't muck up my regular user settings. It doesn't work for Developer. It's also interesting that standard Unix commands like ls and mkdir aren't working, but pwd and cd are. I ran echo $PATH and the only path defined is: /Users/developer/bin, so I feel like this is part of the problem. Just don't know how to resolve it. I took the Console course, but it wasn't enough to make me comfortable with making stuff up.

Okay, so after some research, I decided to run:

export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Everything seems to be working. Running vagrant up and that appears to be working just fine. I don't understand why I had to make changes to my path. I didn't do anything in the Personal user path. Commands just work. If someone has thoughts on that, would love to hear.

Now I just have to edit my .bash_profile I guess to make sure the changes stick for every session.

1 Answer

What operating system are you using?