4
votes

I have installed the composer also and the path is also well defined but when I type composer update then the following error appears. 'composer' is not recognized as an internal or external command, operable program or batch file.

Path: C:\ProgramData\ComposerSetup\bin

F:\xampp\php

C:\Users\THEE NES\AppData\Roaming\Composer\vendor\bin

1
Did you try running it in a new command prompt instance?Nimeshka Srimal
yes i tried in new command prompt but it is giving same errorTHEE NES
Does it work if you run the command from within the folder you have installed composer? Also can you please show us the Path environment variable value and the path which you have installed composer?Nimeshka Srimal
Did u restart computer after installing composer?Nadun Kulatunge
you have to check the directory where you have installed composer and run it in same directory.Adesh Kumar

1 Answers

3
votes

You can try to run it in this way because you may not have installed it globally:

C:\ProgramData\ComposerSetup\bin\composer update

If it still doesn't work you have to restart Windows Explorer or your computer not only cmd