Composer & Cygwin

后端 未结 13 2198
醉酒成梦
醉酒成梦 2021-01-30 04:22

Composer doesn\'t run correctly in Cygwin if you try to install it \"globally\".

Putting composer.phar into /usr/local/bin/composer, then trying to run it will result in

13条回答
  •  南笙
    南笙 (楼主)
    2021-01-30 05:07

    I suggest you use babun, it is based cygwin, but you can install package by pact, you can do this:

    pact install php php-json php-phar

    php -r "readfile('https://getcomposer.org/installer');" | php

    then enjoy yourself.

提交回复
热议问题