我已经安装了Vagrant,Vagrant init运行良好。当我现在运行Vagrant up时,我得到了这个错误:
The executable 'cygpath' Vagrant is trying to run was not
found in the %PATH% variable. This is an error. Please verify
this software is installed and on the path.我使用cygwin作为终端,我使用的是Windows8,我已经将C:\cygwin64\bin放在了我的路径中的环境变量中。
我的问题是,当我指定cygwin bin的路径时,为什么会收到这个错误消息?
谢谢!
发布于 2016-01-18 16:53:54
我假设您已经安装了Cygwin,只需将cygwin的路径(通常为c:\cygwin\bin\cygwin.exe)添加到您的shells % path %变量中,您就应该准备就绪了。
Powershell/Cmd-Window的
发布于 2016-04-26 00:32:07
在删除cygwin之后,我刚刚遇到了同样的错误,并发现解决方法不是重新安装它,而是简单地将它从%Path%中删除,这样Vagrant就不会在启动时搜索它。
因此,您可以打开控制面板=> System =>高级系统设置=>环境变量...然后在系统变量下找到Path,并删除对cygwin的任何引用。
重新启动shell,然后就可以运行了。
发布于 2016-07-08 15:57:10
我的想法是创建一个小的包装器脚本,vagrant.bat
@setlocal
@set PATH=C:\HashiCorp\Vagrant\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
@vagrant %*
@endlocal在我的PATH中,vagrant.bat文件位于第一个目录中。
https://stackoverflow.com/questions/33925707
复制相似问题