Search code examples
node-moduleshyperledger-fabrichyperledgerhyperledger-composer

No version of composer-cli has been detected


All,

After following the instructions in this page: Installing the Development Environment to install Hyperledger Composer, I encountered this error every time I use

sudo ./createPeerAdminCard.sh

enter image description here

I am sure that I have installed the correct version of composer-cli by executing these commands:

npm install -g composer-cli@next

or

npm install -g composer-cli@0.19.0

Can someone advice what to do?


Solution

  • FYI the correct Install Doc for v0.19.0 of Composer is here

    It looks like you are using sudo for some of the commands which may well be causing the problems. You should not need to use root or sudo. There is additional information in the the knowledge wiki about installing.