Composer & Cygwin

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

    I fixed it by adding a /usr/local/bin/composer file:

    nano /usr/local/bin/composer
    

    with the following content:

    #!/bin/bash
    /cygdrive/c/wamp/bin/php/php5.4.3/php "C:\wamp\bin\php\php5.4.3\composer"
    

    Basically, you have to call PHP with a Windows style path, not a cygwin path.

    0 讨论(0)
提交回复
热议问题