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.
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.527Daniel 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.957Additional 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