gpt4 book ai didi

Laravel 家园。无法运行 "homestead up"

转载 作者:行者123 更新时间:2023-12-01 07:00:24 25 4
gpt4 key购买 nike

我正在尝试启动并运行 Laravel Homestead。我通过 http://laravel.com/docs/4.2/homestead 顺利完成了所有步骤.我要做的最后一件事是编辑我的 homestead.yaml 文件(我做了)并运行 homestead up .但是每次我尝试homestead up我得到这个输出:

/Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/shared_helpers.rb:89:in `expand_path': couldn't find HOME environment -- expanding `~' (ArgumentError)
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/shared_helpers.rb:89:in `expand_path'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/shared_helpers.rb:89:in `user_data_path'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/manager.rb:16:in `user_plugins_file'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/manager.rb:27:in `instance'
from /Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/lib/vagrant/pre-rubygems.rb:22:in `<main>'

有谁知道为什么会发生这种情况以及如何解决?

注意:我是一个终端菜鸟,我刚开始学习 laracast 上的教程,所以我的终端正在使用 Oh-my-zsh 和 Homebrew,据说如果可能的话 zsh 或 Homebrew 语法会最有帮助。

最佳答案

经过一番研究,这似乎是 2.0.8 版中的错误。一个解决方案是恢复到 v2.0.7

先删除当前homestead 2.0.8文件夹
rm -rf ~/.composer/vendor/laravel/homestead
然后安装 Homestead v2.0.7
composer global require laravel/homestead:v2.0.7

关于Laravel 家园。无法运行 "homestead up",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27285627/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com