Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant Command Stopped Working: Command not Found on WIndows

I've been trying to fire up vagrant from the Homestead folder on Windows but keeps showing

bash: vagrant: command not found

I suppose it is an issue with configuration of commands on Windows

Please, what can be done about this? Thanks in advance!

like image 820
Samuel Cesc Avatar asked Feb 26 '16 15:02

Samuel Cesc


2 Answers

Okay, I had an issue with the system environment variables.

Go to: System Properties -> Advanced -> Click Environment Variables

Then Click Path on the System variables section, Add New and type in C:/HashiCorp/Vagrant/bin depending on your vagrant path.

Click Ok and you're done!

like image 144
Samuel Cesc Avatar answered Oct 24 '22 01:10

Samuel Cesc


It means that its missing from your System PATH variable.

To set again:

  1. Click on "Start Menu"
  2. Search "Environment Variable" or "env"
  3. Click PATH
  4. Add New
  5. Paste This C:\HashiCrop\Vagrant\bin [Vagrant installation path]

Hope it will solve your problem.

like image 30
Faruk Ahmed Avatar answered Oct 24 '22 02:10

Faruk Ahmed