Error in CMD when installing composer

#1

Hi,

I am trying to install composer for PHP.

However while trying to check if the installation is working correctly via CMD I get a message that it’s not.

I am using the following “php composer.phar” in CMD.

I made a video showing the stages that I am going through in order to install composer and the error I am receiving.

You can watch the video at the following link:

https://drive.google.com/file/d/1LXzQgHgij1NT21CPH-dqnYag_617Jds5/view?usp=sharing

What am I doing wrong?

Thank you for your help and have a nice day.

#2

please post the error here

#3

The error I received is

“could not open input file: composer.phar”

In the video I attached I show the error I get.

Thank you for your help.

#4

I am attaching a screenshot what happens when I write composer only with out the “phar”

Does this mean that everything is working correctly?
What%20I%20get

#5

Yes it seems to be fine. You should run composer self-update to get the latest version though

#6

Thank you for your help