I am trying to install composer through php as described in their wesite.
php -r "readfile('https://getcomposer.org/installer');" | php
But it displays the following error:
$ php -r "readfile('https://getcomposer.org/installer');" | php output is not a tty input is not a tty
I am on Windows 7 and am using git bash to execute this command. On the Windows command line, it works fine. This problem only occurs when executing this command from git bash 2.6.2-64bit.
By the way, I installed composer for windows, and it works fine. But I can not load the .phar composer this way. How can I fix this problem?
source share