Windows 10 Git Bash
$ ./createPeerAdminCard.sh
Development only script for Hyperledger Fabric control
Running 'createPeerAdminCard.sh'
FABRIC_VERSION is set to 'hlfv12'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
Cannot use Composer version 1.5.2 2017-09-11 16:59:25
version of composer with fabric 1.2, v0.20 or higher is
required
To find out the dir of the conflicting composer:
$ which composer
/c/ProgramData/ComposerSetup/bin/composer
To resolve the conflict, add 2 lines in C:\Users\kiat.bashrc
alias composer=/c/Users/kiat/AppData/Roaming/npm/composer
alias pcomposer=/c/ProgramData/ComposerSetup/bin/composer
Now, to use PHP composer, issue command eg:
$ pcomposer create-project symfony/symfony-demo my_project
Posted by kiatng to Fabric (2018-10-22 08:00)