admin管理员组文章数量:1291147
C:\Windows\System32>choco install vagrant --version=2.4.3 -y Chocolatey v2.4.1 3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).
Validation Warnings:
- A pending system reboot request has been detected, however, this is being ignored due to the current Chocolatey configuration. If you want to halt when this occurs, then either set the global feature using: choco feature enable --name="exitOnRebootDetected" or pass the option --exit-when-reboot-detected.
Installing the following packages: vagrant By installing, you accept licenses for the packages. Downloading package from source '/' Progress: Downloading vagrant 2.4.3... 100%
vagrant v2.4.3 [Approved]
vagrant package files install completed. Performing other installation steps.
Downloading vagrant 64 bit
from '.4.3/vagrant_2.4.3_windows_amd64.msi'
Progress: 100% - Completed download of C:\Users\swath\AppData\Local\Temp\chocolatey\vagrant\2.4.3\vagrant_2.4.3_windows_amd64.msi (251.21 MB).
Download of vagrant_2.4.3_windows_amd64.msi (251.21 MB) completed.
Hashes match.
Installing vagrant...
vagrant has been installed.
ERROR: The term 'netsh.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
vagrant may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv
).
The install of vagrant was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\vagrant\tools\chocolateyinstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vagrant (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\vagrant\tools\chocolateyinstall.ps1'. See log for details.
C:\Windows\System32>refreshenv 'wmic' is not recognized as an internal or external command, operable program or batch file. Refreshing environment variables from registry for cmd.exe. Please wait...Finished..
i was trying to install vagarant through chocolatey command through cmd and powershell i also tried installing vagarant by installating through the installer it shows it is installed but at the end when i use vagrant it shows :
Vagrant failed to initialize at a very early stage:
The executable 'cmd.exe' 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.
enter image description here
C:\Windows\System32>choco install vagrant --version=2.4.3 -y Chocolatey v2.4.1 3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).
Validation Warnings:
- A pending system reboot request has been detected, however, this is being ignored due to the current Chocolatey configuration. If you want to halt when this occurs, then either set the global feature using: choco feature enable --name="exitOnRebootDetected" or pass the option --exit-when-reboot-detected.
Installing the following packages: vagrant By installing, you accept licenses for the packages. Downloading package from source 'https://community.chocolatey./api/v2/' Progress: Downloading vagrant 2.4.3... 100%
vagrant v2.4.3 [Approved]
vagrant package files install completed. Performing other installation steps.
Downloading vagrant 64 bit
from 'https://releases.hashicorp/vagrant/2.4.3/vagrant_2.4.3_windows_amd64.msi'
Progress: 100% - Completed download of C:\Users\swath\AppData\Local\Temp\chocolatey\vagrant\2.4.3\vagrant_2.4.3_windows_amd64.msi (251.21 MB).
Download of vagrant_2.4.3_windows_amd64.msi (251.21 MB) completed.
Hashes match.
Installing vagrant...
vagrant has been installed.
ERROR: The term 'netsh.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
vagrant may be able to be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv
).
The install of vagrant was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\vagrant\tools\chocolateyinstall.ps1'.
See log for details.
Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
- vagrant (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\vagrant\tools\chocolateyinstall.ps1'. See log for details.
C:\Windows\System32>refreshenv 'wmic' is not recognized as an internal or external command, operable program or batch file. Refreshing environment variables from registry for cmd.exe. Please wait...Finished..
i was trying to install vagarant through chocolatey command through cmd and powershell i also tried installing vagarant by installating through the installer it shows it is installed but at the end when i use vagrant it shows :
Vagrant failed to initialize at a very early stage:
The executable 'cmd.exe' 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.
enter image description here
Share Improve this question asked Feb 13 at 15:04 swathy krishnaswathy krishna 1 1- Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Feb 16 at 0:51
1 Answer
Reset to default 0It appears something may be wrong with the PATH on that shell. Close it and reopen it and see if calling for netsh.exe still fails.
If it still fails, it could be that something you have installed has potentially messed up one or both of your PATH variables.
You can run $env:PATH
in Powershell and see what it shows. There should be semi-colons between every path item.
本文标签:
版权声明:本文标题:chocolatey vagrant installation problem i am getting this after trying to install vagrant box image - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741525386a2383433.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论