Tools, FAQ, Tutorials:
"Failed to load gRPC binary module" Error
Why am I getting the "Failed to load gRPC binary module" error when running a Node.js client application?
✍: FYIcenter.com
If your Node.js environment is out of sync, you will get the
"Failed to load gRPC binary module" error as shown below:
$ cp ~/hyperledger-binaries/fabric-samples/fabcar/javascript $ node enrollAdmin.js /home/fyicenter/hyperledger-binaries/fabric-samples/fabcar/javascript/node_modules\ /grpc/src/grpc_extension.js:55 throw error; ^ Error: Failed to load gRPC binary module because it was not installed for the current system Expected directory: node-v57-linux-x64-glibc Found: [node-v67-linux-x64-glibc] This problem can often be fixed by running "npm rebuild" on the current system ...
Follow the suggestion to run "npm rebuild":
$ npm rebuild ... $ node enrollAdmin.js Wallet path: /home/fyicenter/hyperledger-binaries/fabric-samples/fabcar/javascript/wallet An identity for the admin user "admin" already exists in the wallet
As you can see, the issue is resolved.
Â
⇒ commercial-paper Sample Network
⇠registerUser.js - Register User to ca.example.com
⇑ WYFA (Writing Your First Application)
⇑⇑ Hyperledger Tutorials
2020-01-04, 1790👍, 0💬
Popular Posts:
How to extend json.JSONEncoder class? I want to encode other Python data types to JSON. If you encod...
How to add an API to an API product for internal testing on the Publisher Portal of an Azure API Man...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
What Is HTML? HTML (HyperText Markup Language) is the standard markup language for creating Web page...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...