Composer & Cygwin

后端 未结 13 2321
醉酒成梦
醉酒成梦 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 04:59

    How about this one?

    1. In ~/.bashrc, add: alias composer='php c:\\your\\path\\to\\composer.phar'
    2. Restart cygwin or reload the bashrc by running source ~/.bashrc

    Works for me using both Cygwin's native php.exe and XAMPP's Windows-specific one.

提交回复
热议问题