Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Add build instructions #3

Closed
mikeshultz opened this issue Jul 20, 2017 · 2 comments
Closed

Add build instructions #3

mikeshultz opened this issue Jul 20, 2017 · 2 comments

Comments

@mikeshultz
Copy link

Would be helpful to have build instructions for those that might want to contribute to the project.

@mikeshultz
Copy link
Author

mikeshultz commented Jul 29, 2017

Taking a whack at it.

Install dependencies

npm install

Run

var TestRPC = require("./index");
var server = TestRPC.server();
server.listen(port, function(err, blockchain) {console.error(err,blockchain);});

However, getting this now with nodejs version 6.11.1:

$ nodejs index.js 
module.js:597
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: Module version mismatch. Expected 48, got 57.
    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> (/home/mike/dev/ganache-core/node_modules/scrypt/index.js:3:20)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

Working on it...

EDIT:
Versions are NODE_MODULE ABI versions and 57 is nodejs v8+.

Running nodejs index.js does nothing, however. Continuing...

EDIT: I was not able to figure out how to run the testrpc server from a command, however, opening a nodejs console in the root of the project dir and running the above statements seemed to work.

@benjamincburns
Copy link
Contributor

Thanks for submitting this, @mikeshultz! Our README.md was updated to include build instructions quite some time ago. Let us know if they're not adequate for your needs!

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

2 participants