vendredi 2 juin 2017

Homestead 'init' command not defined - after correct installation of both homestead and composer

saw a lot of the same issue as I am having online but I still have yet to find a definitive solution, and I am quite stumped. I think it may be an issue with composer since this is the error it throws up:

[Symfony\Component\Console\Exception\CommandNotFoundException] Command "init" is not defined.

Though after uninstalling and reinstalling everything three times and even running a computer clean in between I still get this exact same issue. My path looks right and I even uninstalled and reinstalled VirtualBox installing it with NDIS5 driver, after I saw that there is a persistent issue online with installing Virtual box using NDIS6 driver on a Windows 10 device. If I run a '$ bash init.sh' it'll initializes and overwrites Homestead just fine:

user@LAPTOP MINGW64 ~/Homestead ((v4.0.5)) $ bash init.sh

cp: overwrite '/c/Users/seanh/.homestead/Homestead.yaml'?

cp: overwrite '/c/Users/seanh/.homestead/after.sh'?

cp: overwrite '/c/Users/seanh/.homestead/aliases'? Homestead initialized!

But commands like $ homestead 'init','up','edit' all return the same error. These are the steps I took to get to the point I am at.

After following the Laravel Homestead 5.4.0 installation and setup instructions http://ift.tt/2qKl5ER I clone homestead into a 'Homestead' folder using

$ git http://ift.tt/SBuys2 Homestead

after that's done I run the following command so that I may use homestead anywhere within my directory.

$ composer global require "laravel/homestead"

When I "$ homestead" it'll give me a list of commands I can use but not the full list, it's only partial. But it'll still go through the motions showing that it's installed correctly. I'll usually run a '$ vagrant init' afterwards followed by a '$ vagrant up' which does create and configure my virtual machine.

I know that getting Laravel Homestead setup and working on a Windows(10) device isn't optimal, but any advice, tips, or help would be greatly appreciated. Thanks!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2qKwBQQ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire