IBM-Blockchain-Archive / ibm-container-service

IBM Blockchain Platform for Developers on IBM Container Service
Apache License 2.0
89 stars 73 forks source link

composer card import - Cannot find module node-v57-linux-x64 #90

Closed erikvaningen closed 6 years ago

erikvaningen commented 6 years ago

While running this command composer card import -f admin.card I am running into this problem

-Cannot find module '/usr/local/lib/node_modules/composer-cli/node_modules/grpc/src/node/extension_binary/node-v57-linux-x64/grpc_node.node

I was assuming that the problem is on GRPC level, therefore found that composer v0.16.6 needs: "grpc": ">=1.3.5 <1.7.0",

But I do not understand composer, they seem to have different versions? $npm view composer-cli version 0.19.4 $composer --version v0.16.6

Aren't composer and composer-cli the same thing and both npm packages? Why do they have different version numbers?

vmorris commented 6 years ago

Probably because you have one installed globally and one that is not.

lesleyannjordan commented 6 years ago

Please uninstall composer-cli and re-install required version.

npm install -g composer-cli@0.19.x

check versions: composer -v and npm version match

mrshah-at-ibm commented 6 years ago

Closing due to inactivity. Feel free to reopen the issue if you are still seeing this issue