Issue with running Vagrant in Homestead

僤鯓⒐⒋嵵緔 提交于 2019-12-10 11:33:23

问题


I tried setting up a virtual machine using Homestead box. I followed documentation on Laravel site for setting up Homestead.

When I ran the command vagrant up, it seemed to work in setting a VM. Then it asked to run vagrant provision, which I did.

I can't get pass red text 'You are already using composer version 1.1.3 (stable channel)'. I don't know what to do next.

Update: here is Homestead.yaml file:


回答1:


Needed to edit the file at

~/.homestead/Homestead.yaml

instead of

~/Homestead/Homestead.yaml

after that reload it as usual

vagrant reload --provision



回答2:


Add

~/.composer/vendor/bin

to Your PATH on host machine (not inside vm).

After restart terminal You can use homestead command.



来源:https://stackoverflow.com/questions/38218034/issue-with-running-vagrant-in-homestead

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