我试图为一个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 `'
什么是couldn't find HOME environment -- expanding
'意思,我该如何解决?我正在使用Oh-my-zsh作为shell.
我有同样的问题.作为解决方法,您可以添加
ENV["HOME"] = "/Users/your-user-name"
到文件
/Applications/Vagrant/embedded/gems/gems/vagrant-*version*/lib/vagrant/shared_helpers.rb
在require "tempfile"
它下面启动并运行
使用以下命令搜索php.ini: php --ini
在你的php.ini文件中,设置variables_order = "EGPCS"
.
而已.