Failed to load connector module composer-connector-hlfv1 for connection profile hlfv1

Viewed 1704

I a trying to deploy my blockchain network on a cloud server, but the following command to deploy the bna file on the running hyperledger instance fails:

composer network deploy -a basic-sample-network.bna -p hlfv1 -i PeerAdmin -s randomString

I have tried the following things:

  • uninstalling and installing composer-cli

  • uninstalling and then installing node and npm.

    I am getting an error as mentioned in the title. Any help would be much appreciated. Thanks

6 Answers

try this. It worked for me

$ npm install grpc

Under root and navigate to your composer-cli installed folder (I have this: /usr/local/lib/node_modules/composer-cli) and run npm unsafe rebuild (npm rebuild --unsafe-perm)

Related