laravel command not found while using laravel command

- 1 answer

Ad

I've recently installed composer and also installed laravel installer from composer from the commmand line just like they said in laravel documentation. But when I used the laravel command on the command line, it show error:

sh.exe": laravel: command not found

I also added environment variable in the path variable.

~/.composer/vendor/bin

But still the same error occurs while using the laravel command. I'm a laravel newbie and I'm stuck in laravel installation.I've searched lot of times but still could not get the solution. I've read lot of users' questions with the same problem and used their solutions but still could not fix this.

Ad

Answer

Ad

On windows system, please remove . from path (just before .Composer)

Ad
source: stackoverflow.com
Ad