gpt4 book ai didi

laravel - 找不到 HOME 环境 -- 扩展 `~'

转载 作者:行者123 更新时间:2023-12-02 06:54:11 24 4
gpt4 key购买 nike

我尝试为 Laravel 应用程序启动 Homestead 2.0,但是每次运行时

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>'

无法找到 HOME 环境 -- 扩展~'是什么意思以及如何修复它?我使用 Oh-my-zsh 作为 shell。

最佳答案

使用以下命令搜索 php.ini:php --ini

在 php.ini 文件中,设置 variables_order = "EGPCS"

就是这样。

关于laravel - 找不到 HOME 环境 -- 扩展 `~',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27288947/

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