Module version mismatch composer-connector-hlfv1 -
i keep getting "module version mismatch" error when walking through developer guide tutorial. i'm able complete of tutorial (creating , testing business network, deploying local fabric, interacting via rest server), error when running yeoman create sample angular app...
~/git/my-test-network$ yo hyperledger-composer:angular welcome hyperledger composer angular project generator ? want connect running business network? yes ? project name: my-app ? description: commodity ? author name: t ? author email: t ? license: apache-2.0 ? business network identifier: my-test-network ? connection profile: hlfv1 ? enrollment id: admin ? enrollment secret: adminpw ? want generate new rest api or connect existing rest api? generate new rest api ? rest server port: 4000 ? should namespaces used in generated rest api? never use namespaces events.js:160 throw er; // unhandled 'error' event ^ error: failed load connector module "composer-connector-hlfv1" connection profile "hlfv1". error: module version mismatch. expected 48, got 46. @ connectionprofilestore.load.then.e (/usr/local/lib/node_modules/generator-hyperledger-composer/node_modules/composer-common/lib/connectionprofilemanager.js:150:38)
i believe related npm, have uninstalled/reinstalled/rebuild several times , error persists
npm uninstall -g composer-cli npm uninstall -g composer-rest-server npm uninstall -g generator-fabric-composer npm install -g composer-cli npm install -g composer-rest-server npm install -g generator-fabric-composer npm uninstall -g yo npm install -g yo
my setup ...
ubuntu 16.04.1 lts docker --version docker version 17.06.0-ce, build 02c1d87 docker-compose --version docker-compose version 1.8.0, build unknown node --version v6.11.1 npm --version 5.3.0 npm -v composer-cli 5.3.0 npm -v composer-rest-server 5.3.0 npm -v generator-hyperledger-composer 5.3.0 npm -v yo 5.3.0
please check output composer -v
you should using generator-hyperledger-composer
above see installed old version: npm install -g generator-fabric-composer
can please cd
generated app , rm -r
node_modules
directory, , rerun npm install
.
Comments
Post a Comment