zone117x / node-cryptonote-pool

Mining pool for CryptoNote based coins such as Bytecoin and Monero
GNU General Public License v2.0
828 stars 1.14k forks source link

Errror when build #191

Open xmrminer2017 opened 7 years ago

xmrminer2017 commented 7 years ago

4) Start the pool

node init.js

and get this errror

2017-08-27 14:41:41 [master] Pool fork 4 died, spawning replacement worker... module.js:491 throw err; ^

Error: Cannot find module '/root/monero/monero-v0.10.3.1/pool/node_modules/bignum/binding/bignum.node' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25) at Module.require (module.js:517:17) at require (internal/module.js:11:18) at Object. (/root/monero/monero-v0.10.3.1/pool/node_modules/bignum/index.js:4:11) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) at Function.Module._load (module.js:462:3) 2017-08-27 14:41:42 [master] Pool fork 1 died, spawning replacement worker... module.js:491 throw err; ^

Error: Cannot find module '/root/monero/monero-v0.10.3.1/pool/node_modules/bignum/binding/bignum.node' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25) at Module.require (module.js:517:17) at require (internal/module.js:11:18) at Object. (/root/monero/monero-v0.10.3.1/pool/node_modules/bignum/index.js:4:11) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) at Function.Module._load (module.js:462:3) 2017-08-27 14:41:42 [master] Pool fork 2 died, spawning replacement worker... module.js:491 throw err; ^

Error: Cannot find module '/root/monero/monero-v0.10.3.1/pool/node_modules/bignum/binding/bignum.node' at Function.Module._resolveFilename (module.js:489:15) at Function.Module._load (module.js:439:25) at Module.require (module.js:517:17) at require (internal/module.js:11:18) at Object. (/root/monero/monero-v0.10.3.1/pool/node_modules/bignum/index.js:4:11) at Module._compile (module.js:573:30) at Object.Module._extensions..js (module.js:584:10) at Module.load (module.js:507:32) at tryModuleLoad (module.js:470:12) at Function.Module._load (module.js:462:3)

theshoeshiner commented 7 years ago

I got this error due to compilation issues. What fixed it for me was to install node-package-manager and ensure I was compiling/executing with nodejs 0.10. So install npm, remove node_modules folder from build location, rebuild, then execute. The npm execution command should look something like this: nvm exec 0.10 node init.js