Vagrant Command Stopped Working: Command not Found on WIndows

此生再无相见时 提交于 2019-12-01 17:38:51

问题


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!


回答1:


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!

Start MobaXterm -> Settings -> Terminal -> Local shell settings -> Use Windows PATH.




回答2:


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.



来源:https://stackoverflow.com/questions/35655038/vagrant-command-stopped-working-command-not-found-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!