parthrai2's avatar

Issues with Homestead

Hey guys,

I am trying to setup homestead on windows 8.1, after doing "composer global require "laravel/homestead=~2.0" the files are imported.

but when try to start homestead by typing "homestead" in cmd it gives me this error

Fatal error: Cannot redeclare static Symfony\Component\Console\Command\Command::$defaultName as non static Laravel\Homestead\MakeCommand::$defaultName in C:\Users\User\AppData\Roaming\Composer\vendor \laravel\homestead\src\MakeCommand.php on line 155

My environment is

Windows 8.1 Vagrant 2.0.2 VirtualBox 5.1.8

I would really appreciate any help. Thanks :)

0 likes
5 replies
lara56278's avatar

I am assuming you have followed the documentation for installing Homestead on Windows using vagrant and virtual box in the Laravel docs?

https://laravel.com/docs/5.6/homestead

I am running that setup but with Windows 10 and can give you a hand getting things set up if you are still struggling.

ejdelmonico's avatar

Upgrade your Vagrant and VirtualBox to the latest. Run vagrant up to start building the box. Also, you may need to update the vagrant box by going to the Homestead directory and running vagrant box update before running vagrant up.

parthrai2's avatar

I re-installed the homestead and it worked. Don't know the reason but it worked.

Please or to participate in this conversation.