Answer the question
In order to leave comments, you need to log in
Setting $PATH variable for composer?
I love ( sarcasm ) Windows, any, and so I have the 10th.
Everything is done with administrator rights. These variables go up. PhP 7 I put below composer.
OpenServer and its console, I also tried all this with Windows Shell.
Here's what I did already, I registered this path in the Environment variables
C:\Users\%USERPROFILE%\AppData\Roaming\Composer\vendor\bin
composer global require "laravel/installer=~1.1"
setx /M path "%path%;%appdata%\Composer\vendor\bin"
laravel new blog
C:\Users\%USERPROFILE%\Desktop\OpenServer\modules\php\PHP-7
//или
C:\Users\%USERPROFILE%\Desktop\OpenServer\modules\php\PHP-7\php.exe
// или
%USERPROFILE%\AppData\Roaming\Composer\vendor\bin
//или
C:\Users\%USERPROFILE%\AppData\Roaming\Composer\vendor\bin
> laravel new blog
'laravel' is not recognized as an internal or external command,
operable program or batch file.
Answer the question
In order to leave comments, you need to log in
I love (sarcasm)Why are you using it then?
Everything is done with administrator rights.You don't have to do that.
SET PATH="%appdata%\Composer\vendor\bin;%path%"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question