Search code examples
phplaravelcomposer-phplaravel-routing

why cannot find composer.phar file after install composer


I try to install composer with the installer for Windows , but could not be installed globally.

The message:

Could not open input file: c:\windows\system32\composer.phar

I have to run on the following url:

C:\ProgramData\ComposerSetup\bin;

My environment variables are:

C:\wamp\bin\php\php5.4.12;C:\ProgramData\ComposerSetup\bin;

How can I install composer globally?


Solution

  • composer.phar is a single file, you can just move it to the system32 folder and have it visible globally