Reputation: 23
I have a freshly installed Laravel. I did a vagrant destroy --force
before installation.
Every time I run anything using vagrant on my laravel project directory, I get this error.
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: /Applications/MAMP/htdocs/Sites/project-flyer/Vagrantfile Line number: 12 Message: LoadError: cannot load such file -- /Applications/MAMP/htdocs/Sites/project-flyer/vendor/laravel/homestead/scripts/homestead.rb exit 1
Now, I've checked, looking for homestead.rb
but vendor/laravel/homestead
folder doesn't exist. I'm lost.
Upvotes: 2
Views: 6841
Reputation: 5174
It seems there is a broken homestead installation in your directory. You could do:
composer remove laravel/homestead
composer require laravel/homestead --dev
php vendor/bin/homestead make
For details you can also consult the homestead documentation.
Upvotes: 4