Answer the question
In order to leave comments, you need to log in
Composer not seeing PATH variable?
Hello!
I installed composer on Windows 10.
The path was registered in the PATH variable: C:\ProgramData\ComposerSetup\bin
However, when I enter composer on the Command line, it gives out:
"""" is not an internal or external
command, executable program or batch file.
If you write the full path:
C:\ProgramData\ComposerSetup\bin\composer
then everything works. Tell me how to fix this?
Answer the question
In order to leave comments, you need to log in
It's all about using Open Server which already has composer installed. Go to \OpenServer\modules\php\ select the version of php you are using and delete the composer.bat and composer.phar files. After restarting the server, the composer command will work immediately.
I had such a problem. I solved it as follows: in windows 10 there is a window in which all paths are displayed in separate lines and there are buttons "Up", "Down" in the same place. I put the path to php below, after the path to the composer. And a miracle happened, composer worked for me.
I put the path to php below, after the path to the composer files
It was decided so. In Cmder or PowerShell we execute 2 commands:
cd C:\ProgramData\ComposerSetup\bin
php composer.phar
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question