• Register
0 votes
2.4k views

Problem :

Currently I am using the windows server 2008 os. I download the composer setup.exe and install it to my PC . But when I try to install composer. I face below error:

'composer' is not recognized as an internal or external command,

eg:-

'composer' is not recognized as an internal or external command,

operable program or batch file.

7 5 2
3,870 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I had the same error in recent past, I just kept repeating my composer installation until it was resolved by this way:

1) Download your composer installer (.exe) and then put it on the C:/XAMPP.

2) Run your installer by just clicking on next till the very end.

3) Open your command-line (cmd) and just cd to your project directory (C:/XAMPP/htdocs/myproject) and then type the composer and see if you have it installed on your PC.

4) It must work now, let us say you want to install the PHP framework from the project directory as follows: cmd=>composer require slim/slim "^3.0".

OR

The solution is very simple you just need to use complete composer path instead of the composer install eg:- C:\ProgramData\ComposerSetup\bin\composer install" instead of "composer install

Just add "C:\ProgramData\ComposerSetup\bin\" to the environment variables, so that now you can use as "composer install".

9 7 4
38,600 points

Related questions

0 votes
1 answer 111 views
111 views
Problem : I am facing following MinGW issue: 'gcc' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 64 views
64 views
Problem : Facing following Node.Js error 'npm' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
2 answers 283 views
283 views
Problem : I have installed Git for Windows but when I try to use git command in Command Prompt I get the following message: 'git' is not recognized as an internal or external command, operable program or batch file.
asked Nov 18, 2019 peterlaw 6.9k points
0 votes
1 answer 441 views
441 views
Problem : I have Windows 7 and tried to use the 'make' command but getting following error 'make' is not recognized as an internal or external command, operable program or batch file.
asked Nov 15, 2019 peterlaw 6.9k points
0 votes
1 answer 25 views
25 views
I installed WAMP on my computer. After the installation, I created my first php file. I wanted to test it by using the command prompt. php test.php But I got this error instead. 'php' is not recognized as an internal or external command, operable program ... don’t know what’s wrong because I followed the tutorial on how to install WAMP. Any help and guide will be greatly appreciated.
asked Oct 11, 2020 azriel 590 points
0 votes
1 answer 26 views
26 views
Problem: Hi: I am returning after a little break. I was examining and rehearsing Java these days routinely. I've enlisted myself in an online course to comprehend things in a superior manner. I believe it's helping me somewhat more. Anyway, today I've inquiry with respect to change in Java. I am understanding the java concept of internal and external command.
asked Nov 2, 2020 Mashhoodch 5.6k points
0 votes
2 answers 49 views
49 views
Hello colleagues, I really want to know How To Solve 'python' is not recognized as an internal or external command, operable program or batch file error. Thanks
asked Oct 23, 2020 psandprop 2.4k points
0 votes
1 answer 19 views
19 views
When the above error appear in the command prompt and reasons behind it?
asked Oct 6, 2020 jagruthi 680 points
1 vote
1 answer 1.2K views
1.2K views
Problem: I installed flask in my system by running the command: pip install flask Collecting flask Downloading https://files.pythonhosted.org/packages/f2/28/2a03252dfb9ebf377f40fba6a7841b47083260bf8bd8e737b0c6952df83f/Flask-1.1.2-py2.py3-none-any.whl (94kB) |████████████████████████████████| ... operable program or batch file. Whats the problem running this can any one tell me? Thanks in advance.
asked May 12, 2020 samhaz 5k points
0 votes
1 answer 83 views
83 views
I am new to python programming. I am using atom IDE or atom editor for my python programs but every time I try to run a code or a script from my atom editor it gives me an error like : atom 'python' is not recognized as an internal or external command, operable ... and atom for 64 bit windows. Can anyone figure out what the problem really is and how can I solve this problem and run my code.
asked Mar 10, 2020 LizzyM 6.1k points