I'm trying to set up Composer for use with Heroku, but am running into problems. I've followed the download steps here which generates the composer.phar file. I then moved it to /usr/local/bin/composer
per the instructions here. Now when running composer
from CLI I get the error
Could not open input file: /Users/myusername/.composer/composer.phar
sudo composer -V
gets me the version number,but with the warning
Do not run Composer as root/super user! See https://getcomposer.org/root for details
The link seems unrelated to a simple -V
command, which I can't imagine I should need to sudo
to run anyway. I've done this installation pretty much by the book, but it seems like this isn't right.