0

I have executed the following command on windows command prompt

folder path >php composer.phar install

Getting Error

Could not open input file: composer.phar

Monasha
  • 711
  • 2
  • 16
  • 27
Aniket B
  • 438
  • 1
  • 5
  • 14
  • Have you installed it first? Was it installed globally? – Rafał Cz. Dec 01 '16 at 06:57
  • 1
    Possible duplicate of [Running Composer returns: "Could not open input file: composer.phar"](http://stackoverflow.com/questions/21670709/running-composer-returns-could-not-open-input-file-composer-phar) – Rafał Cz. Dec 01 '16 at 06:58
  • @RafałCz, I have not installed it globally now i have execute following command folderpath > composer install .It solves my problem. – Aniket B Dec 01 '16 at 07:05

1 Answers1

0

Your command is trying to use composer which is not installed. It is not used to install composer. You have to install it using one of methods stated here: https://getcomposer.org/doc/00-intro.md

The other option is that your path to composer file is wrong, which can also be fixed by following documentation.

Rafał Cz.
  • 735
  • 9
  • 19