laravel homestead the host path of shared folder missing error on windows 7

旧街凉风 提交于 2019-12-03 05:44:58

The error is simple. It's telling you

The host path of the shared folder is missing: /e/Projects/Code/apache/laravel

Your shared folder is missing. According to your question. You are using window. So, window shouldn't work like

cd /e/Projects/Code/apache/laravel

Should be like YourPartitionName:/Yourdirectory.

Example:

folders:
    - map: E:/Projects/Code/apache/laravel
      to: /home/vagrant/Projects

The local directory is missing. Just type mkdir followed by the missing shared folder

eg. mkdir /e/Projects/Code/apache/laravel

Exemple: in terminal

cd ~/.homestead
subl Homestead.yaml 

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: /media/Arquivos/www/vagrant/Code
      to: /media/Arquivos/www/vagrant/Code

sites:
    - map: homestead.app
      to: /media/Arquivos/www/vagrant/Laravel

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

# blackfire:
#     - id: foo
#       token: bar
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!