Vagrant Command Stopped Working: Command not Found on WIndows
Asked Answered
N

2

8

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!

Nolan answered 26/2, 2016 at 15:1 Comment(0)
N
11

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!

Nolan answered 27/2, 2016 at 3:41 Comment(3)
This is great! It works for me. Thank you @Samuel CescCynic
I did this but still receive the same error. Please , how can i fix it?Irreplaceable
@Irreplaceable Check maybe you might need to restart your terminal for changes to take effect.Nolan
P
1

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.

Preraphaelite answered 24/10, 2018 at 15:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.