A
A
Adel1ne2015-09-19 09:38:47
Composer
Adel1ne, 2015-09-19 09:38:47

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

4 answer(s)
D
Dimon-zmey, 2017-05-23
@Dimon-zmey

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.

V
Victor Yefimov, 2016-02-23
@vangelis83

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.

A
Alexander Ablizin, 2016-04-26
@mcmraak

I put the path to php below, after the path to the composer files

Likewise, all you need to do is put PHP paths at the end of the PATH system variable list. In windows7, all paths are simply listed with a semicolon in one line, so you need to cut and paste it, for example, like this: C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%; %SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin; C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\; C:\ProgramData\ComposerSetup\bin ;D:\OpenServer\modules\php\PHP-5.5-x64;C:\php55

A
Andrej Kopp, 2020-11-14
@sequelone

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 question

Ask a Question

731 491 924 answers to any question