Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

couldn't find HOME environment -- expanding `~'

Tags:

Im trying to start up Homestead 2.0 for a Laravel app however every time I run

homestead up 

I get the output

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

What does couldn't find HOME environment -- expanding~' mean and how can I fix it? I'm using Oh-my-zsh as a shell.

like image 230
xslibx Avatar asked Dec 04 '14 08:12

xslibx


1 Answers

Search your php.ini with this commands: php --ini

In your php.ini file, set variables_order = "EGPCS".

Thats it.

like image 163
rahmat Avatar answered Oct 04 '22 15:10

rahmat