2
2

More than 5 years have passed since last update.

homestead up で couldn't find HOME environment -- expanding `~' (ArgumentError)と言われる解決方法

Posted at

Macにhomesteadの環境を作ろうとしていたらエラーがでました。

homestead upでエラー

homesteadでvagrantをあげようとしました。

homesteadでupできない
homestead up

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

ここでhomesteadのバージョンを確認します。

homesteadのバージョンを確認
homestead -v
Laravel Homestead version 2.0.8

2.0.8だとダメらしいのです。。

homeseteadを入れなおす

2.0.8を削除し

homesteadを削除
rm -rf ~/.composer/vendor/laravel/homestead

homesteadのv2.0.7をインストールします。

composerでv2.0.7をインストール
composer global require laravel/homestead:v2.0.7

再度homestead up

再度homestead upを試します。

homesteadをup
homestead up

今度はエラーがでませんでした。

参考

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2