Windows 10下的Git Bash不执行Vagrant版本
安装了GIT版本2.35.1.Windows.2 Windows 10下方。 从Git Bash,Run:Vagrant版本。打开DOS窗口,执行并关闭。 因此,我无法使用这些类型的命令,例如Vagrant版本。 100%可重复。
如果我运行git bash升高,那么我可以看到命令按预期完成。
Windows 10机器的预期行为,GIT运行未升高:
vagrant version
Installed Version: 2.2.19
Latest Version: 2.2.19
这两台机器都是按预期运行的机器,而失败的机器是GIT安装为常规用户,GIT安装在下面: c:\ users< username> \ appdata \ local \ program \ git \ git \ git-bash.exe - cd-to-to-to-to-to-to
Installed git version 2.35.1.windows.2 under Windows 10.
From git bash, run: vagrant version. Opens up a dos window, executes, and closes.
So I cannot use these types of commands, like vagrant version.
100% repeatable.
If I run git bash elevated, then I can see the command completes as expected.
Expected behavior from a Windows 10 machine that works, with git running not elevated:
vagrant version
Installed Version: 2.2.19
Latest Version: 2.2.19
Both machines, the one that works as expected and the one that fails, git was installed as regular user, with git being installing under:
C:\Users<username>\AppData\Local\Programs\Git\git-bash.exe --cd-to-home
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用有问题的PC使用简化的路径并查看是否有效:
打开一个CMD和类型:
替换
c:\ path \ to \ vagrant.exe
by parent vagrant.exe 的em>文件夹,在%path%
中不包括vagrant.exe
本身。测试问题是否存在,然后在该CMD会话中。
Try, with the problematic PC, to use a simplified PATH and see if that works:
Open a CMD and type:
Replace
C:\path\to\vagrant.exe
by the parent folder ofvagrant.exe
, do not includevagrant.exe
itself in the%PATH%
.Test if the issue persists then in that CMD session.