'composer' is not recognized as an internal or external command in windows server
'composer' is not recognized as an internal or external command in windows server
1) Download the composer installer (.exe) and put it on C:/XAMPP.
2) Run the installer by just clicking next till the end.
3) Open command-line (cmd) and cd to your project directory (C:/XAMPP/htdocs/myproject) and type composer and see if you have it installed.
4) It should work now, let's say you want to install a PHP framework from your project directory:
cmd=>composer require slim/slim "^3.0".
Sol 2:
The solution is to use complete composer path instead of
composer install eg:- C:\ProgramData\ComposerSetup\bin\composer install" instead of "composer install
Better still, add
"C:\ProgramData\ComposerSetup\bin\" to your environment variables, so that you can use "composer install".
Sol 3:
If u can't find composer file than follow only 2 steps
1- Download composer file from [https://getcomposer.org/download/]<click on Composer-Setup.exe>
2- Install above file at your project root dir. and give second path is your php.exe file and finally solve this issue.
Sol4:
I had the same problem . In my case i used the command "php composer.phar " instead of "Composer " and it worked .
Comments
Post a Comment