IBM-Blockchain-Archive / car-lease-demo

A demonstration using IBM Blockchain to show how the lifecycle of vehicles can be recorded on a blockchain
Other
170 stars 304 forks source link

Cannot find module 'src/node/extension_binary/grpc_node.node' #99

Open xuqingsz opened 7 years ago

xuqingsz commented 7 years ago

Hi,

I finished the setup, i.e. running the start.sh. Was trying to call the app from CLI: % node app.js and got the error message _Error: Cannot find module '/root/go/src/github.com/xuqingsz/car-lease-demo/node_modules/grpc/src/node/extension_binary/grpcnode.node'

Tried to work around the issue by applying suggestions online, e.g. adding --unsafe-perm (was running as root), etc, and none of them worked. Please advise.

Also, I could not figure out on what to do after start.sh from the Installation Guide, hence made the assumption that the next step would be running app.js. Please correct me if I am wrong, although this may be separate from the missing module problem?

Thanks.

liam-grace commented 7 years ago

That looks like it may be a system problem. Can you give any more information about the system you are trying to run on? start.sh will start the car lease demo as a set of docker images, one for the fabric peer, one for the fabric member service and the last is for the car lease demo itself. This is all configured in the docker-compose.yml file

advissor commented 7 years ago

i've had this issue when building marbles fabric app. gulp marbles1 showed up same error . Neither RAM increase , neither -unsafe-perm helped.

Issue was resolved by executing : npm rebuild P.S Not sure how relevant it is for your case, but maybe it would be heplful for someone