2015-10-14 119 views
0

我已經安裝了Git, VirtualBox and Vargant on my Windows 10電腦。 使用git-bash控制檯啓動Vargant有問題。vagrant INIT工程,vagrant UP - 不起作用

當我做vargant init - 這個創建vargant文件,看起來好像沒關係。

[email protected] MINGW64 /d/shell 
$ vagrant init hashicorp/precise32 
A `Vagrantfile` has been placed in this directory. You are now 
ready to `vagrant up` your first virtual environment! Please read 
the comments in the Vagrantfile as well as documentation on 
`vagrantup.com` for more information on using Vagrant. 

但是,當我嘗試使用vagrant up命令開始顛沛流離我收到錯誤。

[email protected] MINGW64 /d/shell 
$ vagrant up 
bash: vagrant: command not found 

我試圖重新啓動,重新安裝這些軟件,安裝軟件的最新版本,還是previouse版本 - 沒有什麼幫助 - 仍然bash: vagrant: command not found

我接下來要做什麼shell來解決問題?

+0

假設你的例子中'vargant'是一個錯字?你實際上是在外殼裏輸入'vagrant'? – Doon

回答

2

命令/程序名是vagrant而不是vargant。您在init中正確拼寫它,但其餘示例拼寫錯誤。嘗試運行vagrant up,你應該全部設置。

+0

謝謝,第一個例子被複制,第二個例子被自己打印出來。我幾天沒有在我的企圖中看到這個拼寫錯誤! – DaneSoul

+0

它發生。同樣,如果你看一些關於認知/大腦科學的研究,他們已經表明,如果所有的字母都在那裏,但是按照錯誤的順序,大腦會把它解釋爲整個單詞並且按順序排列。這也很有趣。 – Doon