Categories
Laravel

Laravel New command not finding Composer

When calling ‘laravel new myapp’ this error is given:

sh: composer: command not found

Composer is aliased in ~/.bash_profile, which apparently doesn’t help the laravel installer find it (despite being in $PATH).

The solution was to copy /Users/me/composer.phar to /usr/local/bin/composer
The Laravel installer could then use Composer to setup the application.