Composer & Cygwin

后端 未结 13 2304
醉酒成梦
醉酒成梦 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:03

    I think what might work is to build a proxy instead:

    • Put composer.phar in /usr/local/bin/composer.phar
    • Create a bash proxy as /usr/local/bin/composer with the following:

      #!/bin/sh
      c:/path/to/php c:/path/to/composer.phar $@
      
    • chmod +x /usr/local/bin/composer

提交回复
热议问题