Composer & Cygwin

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

    What I did (very simple):

    • Install Composer normally with the Windows installer
    • Open a Cygwin console an type composer you will see something like Could not open input file: /c/route/to/your/composer/installation/bin
    • Create an alias composer='composer.bat' on your bash profile or bashrc or whatever
    • Done

    I'm running Windows 8.1

提交回复
热议问题