LoginSignup
1
0

More than 5 years have passed since last update.

homestead の laravel プロジェクトを vagrant up したときに homestead.rb が無いと言われる

Posted at

laravel プロジェクトを git clone してきて、 vagrant up したら立ち上がりませんでした。環境は Mac + Vagrant です。

Homestead の立ち上げを試みる

vagrant up

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /Users/pugiemonn/Documents/pugiemonn.com/Vagrantfile
Line number: 0
Message: LoadError: cannot load such file -- /Users/pugiemonn/Documents/pugiemonn.com/vendor/laravel/homestead/scripts/homestead.rb

This is usually caused by a syntax error. と書いてありますが、ここは、vendor ディレクトリ内のファイルが無いことに注目します。

composer update

vendor 以下のファイルが無いなら composer install をすると良さそうです。

composer update

もろもろファイルがインストールされました。

再度 vagrant up

vagrant up 

今度はエラーが出なくなりました(☝ ՞ਊ ՞)

1
0
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
1
0