0

just installed laravel on my machine, but when I type

laravel new project 

It tells me that the command does not exist :/

Error :

 zsh: command not found: laravel
Michał Perłakowski
  • 88,409
  • 26
  • 156
  • 177
  • Did you do `composer global require "laravel/installer"` first ? – Jilson Thomas Feb 19 '16 at 17:01
  • 1
    But, wait, you said you installed laravel, then why would you do `laravel new project` ? – Jilson Thomas Feb 19 '16 at 17:02
  • Try the guide on the site - https://laravel.com/docs/4.2/quick – Nick R Feb 19 '16 at 17:05
  • Make sure composer is set right in your path variable. –  Feb 19 '16 at 17:29
  • Can you tell us what you have done so far, from the beginning? I don't think anyone who has answered so far is completely clear on the steps you completed prior to typing `laravel new project` – Joseph Feb 19 '16 at 17:54
  • 3
    Please do not vandalize your posts. Once you've posted a question, you have licensed the content to the Stack Overflow community at large (under the CC-by-SA license). If you would like to disassociate this post from your account, see [What is the proper route for a disassociation request](http://meta.stackoverflow.com/questions/323395/what-is-the-proper-route-for-a-dissociation-request)? – CalvT Jun 09 '17 at 09:50

1 Answers1

1

Have you added the following to your .zshrc file?

# User configuration
export PATH=~/.composer/vendor/bin:$PATH
Björn
  • 5,696
  • 1
  • 24
  • 34
  • You'll need to log off and log on again after adding the path, or type `source .zshrc` to refresh it. – Joseph Feb 19 '16 at 17:53