Manor init undefined

When installing homestead after the official installation instructions for version 4.2, I received the following error message when executing $ homestead init : error message

i.e.

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

My step before that was to install homestead with composer global require "laravel/homestead=~3.0"

I installed Laravel Homestead version 3.0.1 and homestead in my PATH .

+5
source share
2 answers

Hmmmm, I remember that I had this problem when I first installed the estate. I see that the link you provided is for Laravel 4.2. After installing the estate from 5.2 documents, it seemed to be good for me:

Laravel Homestead: Installation and Setup

+4
source

The solution is very simple. Make sure you add this to your bash profiel or .zshrc file.

 function homestead() { ( cd ~/Homestead && vagrant $* ) } 
0
source

Source: https://habr.com/ru/post/1240030/


All Articles