Powershell Vagrant和Virtual Box都安装了仍然是我的Vagrant up命令,给出了路径错误
我正在使用git bash,vagrant文件已添加到我的项目中,但当我尝试运行vagrant UP命令时,它会出现以下错误:Powershell Vagrant和Virtual Box都安装了仍然是我的Vagrant up命令,给出了路径错误,powershell,vagrant,virtualbox,git-bash,vagrantfile,Powershell,Vagrant,Virtualbox,Git Bash,Vagrantfile,我正在使用git bash,vagrant文件已添加到我的项目中,但当我尝试运行vagrant UP命令时,它会出现以下错误: $ vagrant up The executable 'powershell' 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. 帮我修一下
$ vagrant up
The executable 'powershell' 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.
帮我修一下
vagrant文件包含:
Vagrant.configure("2") do |config|
如果您正在进行简单的CMD会话,请检查您的路径:
echo %PATH%
它至少应该包括%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
这取决于您的操作系统和执行上下文。例如,提到: 我在使用zsh从Cygwin终端运行vagrant时遇到了这个问题 通过将
powershell.exe
路径附加到我的path
,我让Vagrant 1.9.7正常工作了在
.zshrc
中:
问题来自网络断开连接,服务器重新设置与客户端的连接,破坏了原始SSL握手 只需确保连接稳定,然后重新运行命令:
$ vagrant up
它将重新启动并完成下载。解决我问题的是我在antoinebou13中找到的a评论 个人电脑:WSL ubuntu 18.04 安装了vagrant 2.2.7和virtualbox 6.1的Windows 10
curl -O https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.deb
sudo apt install ./vagrant_2.2.7_x86_64.deb
export PATH="$PATH:/mnt/c/Program Files/Oracle/VirtualBox"
export PATH="$PATH:/mnt/c/Windows/System32/WindowsPowerShell/v1.0"
export PATH="$PATH:/mnt/c/WINDOWS/system32"
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
同时将项目放在/mnt/c/目录中
@Voc的人我已经把它添加到我的路径中了,但我也找不到它solution@ApurvaGeeteecho%PATH%提供了什么?%systemroot%c:/windows/poweshell/v1.0是我在环境变量中指定的路径
curl -O https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.deb
sudo apt install ./vagrant_2.2.7_x86_64.deb
export PATH="$PATH:/mnt/c/Program Files/Oracle/VirtualBox"
export PATH="$PATH:/mnt/c/Windows/System32/WindowsPowerShell/v1.0"
export PATH="$PATH:/mnt/c/WINDOWS/system32"
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"