How to solve the error composer: '""' is not recognized as an internal or external command, operable program or batch file.?

I installed Composer and it chose php from OpenServer. The command composer, composer -v error '""' is not recognized as an internal or external command,
operable program or batch file.
. The command php-v works, but no compote.

Use Windows 10
Who faced such problem ? How to solve it ?

Thank you!
June 10th 19 at 15:47
2 answers
June 10th 19 at 15:49
You don't have composer in your PATH just. Either you have to put it back where searches for executable files or set the path to it in PATH, or start with the full path. Well, you have to be a composer.bat which actually will be run composer, of course.

Read just in case the setup documentation: https://getcomposer.org/doc/00-intro.md#installati...
June 10th 19 at 15:51
So can php composer.phar
Could you elaborate ? - terry.Hagenes33 commented on June 10th 19 at 15:54
The team try to run php composer.phar - harmon_Carter86 commented on June 10th 19 at 15:57

Find more questions by tags ComposerPHP