mjbaga
mjbaga

Reputation: 23

Laravel Error loading vagrant file

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

Answers (1)

codedge
codedge

Reputation: 5174

It seems there is a broken homestead installation in your directory. You could do:

  • Deinstall the existing homestead with composer remove laravel/homestead
  • Reinstall homestead with composer require laravel/homestead --dev
  • Initizialie homestead and Vagrant configuration php vendor/bin/homestead make

For details you can also consult the homestead documentation.

Upvotes: 4

Related Questions