Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

5. Run the todo list fabric server #27

Open
Gxz-NGU opened this issue Aug 9, 2018 · 1 comment
Open

5. Run the todo list fabric server #27

Gxz-NGU opened this issue Aug 9, 2018 · 1 comment

Comments

@Gxz-NGU
Copy link

Gxz-NGU commented Aug 9, 2018

Run the server:

node server.js

when I run this, I got a problem.

[root@localhost todo-list-fabric-server]# node server.js
info: Loaded config file /usr/local/dockerImages/todo-list-fabricV1-master/todo-list-fabric-server/config/toodles_data.json
info: Loaded creds file /usr/local/dockerImages/todo-list-fabricV1-master/todo-list-fabric-server/config/blockchain_creds.json
module.js:597
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: /usr/local/dockerImages/todo-list-fabricV1-master/todo-list-fabric-server/node_modules/grpc/src/node/extension_binary/grpc_node.node: ELF load command past end of file
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/dockerImages/todo-list-fabricV1-master/todo-list-fabric-server/node_modules/grpc/src/node/src/grpc_extension.js:38:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

can someone help me?

ELF load command past end of file

what does this mean? How can I trace it?

@Gxz-NGU
Copy link
Author

Gxz-NGU commented Aug 9, 2018

Just a few minutes ago I just solved this problem. I found that the dependencies of node.js are wrong. I need to download the complete dependencies from the correct website. Especially developers from China need to pay attention, grpc's 1.1.2 dependency package does not seem to be on Taobao source.
So just make npm install be correct!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant