[程式開發] Laravel Homestead Vagrant 開發 The host path of the shared folder is missing 問題


在vagrant up 時 出現:

Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The host path of the shared folder is missing: ~/Code

就是說 沒有~/Code文件夾 解決辦法:

(1) 創一個 ~/Code 文件夾 

(2) 修改 Homestead.yaml的folder到你想要共享的資料夾位址 :

folders:
    - map: ~/Code
      to: /home/vagrant/Code











沒有留言:

張貼留言