Can't run Composer

1

I've just installed Composer and then tried to run it, but it fails:

prompt>composer
'""' is not recognized as an internal or external command,
operable program or batch file.
 
prompt>composer -v
'""' is not recognized as an internal or external command,
operable program or batch file.

I checked Env Paths... There is no answer related to this problem in the Internet.

UPD:

Program installed via win installer from getcomposer web site. It's placed in its default location.

C:\>where composer
C:\OSPanel\modules\php\PHP_7.1-x64\composer.bat
C:\ProgramData\ComposerSetup\bin\composer
C:\ProgramData\ComposerSetup\bin\composer.bat

C:\>php -v PHP 7.1.22 (cli) (built: Sep 13 2018 00:43:40) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies.

Martin Chobanyan

Posted 2019-08-31T10:09:29.800

Reputation: 11

1How did you install Composer? Where did you install it? Is PHP on your path? What is the output of where composer? // It is better to include command line content as text. On the Windows command line, you can select text with your mouse and then copy it using Enter. Don’t forget to format it as code using the { } button in the editor toolbar! – Daniel B – 2019-08-31T12:35:21.527

Daniel B Via installer. It's placed in its default location. Where: C:\>where composer C:\OSPanel\modules\php\PHP_7.1-x64\composer.bat C:\ProgramData\ComposerSetup\bin\composer C:\ProgramData\ComposerSetup\bin\composer.bat. php: C:\>php -v PHP 7.1.22 (cli) (built: Sep 13 2018 00:43:40) ( ZTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies. – Martin Chobanyan – 2019-08-31T16:02:54.957

Additional information should be included in the question not added as comments. – DavidPostill – 2019-08-31T17:30:41.850

Question updated – Martin Chobanyan – 2019-08-31T17:42:15.073

Answers

0

Okay. IDK how it works, but i just installed composer with "Developer mode" and select a "C:\" path. After this actions it started working. Amazing stuff...

Martin Chobanyan

Posted 2019-08-31T10:09:29.800

Reputation: 11