I am trying to build an example application using nodejs and Hyperledger-composer.
My system is Ubuntu 16.04. and I installed nodejs v8.10 using NVM.
The problem I am having is on the connect() function to my "admin@borrow-network" business network:
this.businessNetworkDefinition = this.bizNetworkConnection.connect('admin@borrow-network');
The error that I am getting is the following:
Error: Failed to load connector module "composer-connector-hlfv1" for connection type "hlfv1". Must create ConnectionManager with a ConnectionProfileManager implementation.
I tried to include additional parameters inside the connect() function:
.connect('PeerAdmin@hlfv1', 'admin@borrow-network','admin','adminpw');
Then it showed a different error
UnhandledPromiseRejectionWarning: TypeError: Cannot create property 'cardName' on string 'admin@borrow-network' at cardStore.get.then(...././lib/businessnetworkconnection.js)
Am I doing something wrong? Please, any help is much appreciated.