win10系統在執行“ vagrant box add centos7 vagrant-centos-7.box”添加box時,報錯“Vagrant failed to initialize at a very early stage: Failed to locate the powershell executable on the available PATH. ”


這個意思是:
在有效的路徑中未能執行PowerShell命令. 請檢查PowerShell的安裝和有效的路徑,然后再嘗試重新運行這個命令。

在環境變量path中添加powershell的路徑,例如:C:\Windows\System32\WindowsPowerShell\v1.0

以上未生效,最后:在C:\Windows\System32\WindowsPowerShell\v1.0中雙擊執行這個powershell,成功執行

 

 

參考:https://zhidao.baidu.com/question/140326749776799965.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM