UNOMP / unified-node-open-mining-portal

Development stopped and is now unsupported. The node.js version is being deprecated in October 2016.
GNU General Public License v2.0
347 stars 396 forks source link

Error: Cannot find module 'merged-pooler' #232

Open bnleach opened 6 years ago

bnleach commented 6 years ago

I am running Ubuntu 16.04 . I followed the guide 'setup your own mining pool' on Blockgen. When i run "sudo node init.js", I get the following error:

module.js:538 throw err; ^

Error: Cannot find module 'merged-pooler' at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Module.require (module.js:579:17) at require (internal/module.js:11:18) at Object. (/home/miner001/unomp/libs/poolWorker.js:1:77) at Module._compile (module.js:635:30) at Object.Module._extensions..js (module.js:646:10) at Module.load (module.js:554:32) at tryModuleLoad (module.js:497:12) at Function.Module._load (module.js:489:3)

How do I fix this issue?

avandurmen0001 commented 6 years ago

try to install it using npm install merged-pooler

ghost commented 6 years ago

npm update

bnleach commented 6 years ago

I did try using npm install merged-pooler and received the following error npm ERR! code E404 npm ERR! 404 Not Found: pooler@latest

npm ERR! A complete log of this run can be found in: npm ERR! /home/miner001/.npm/_logs/2017-12-25T09_03_19_087Z-debug.log

I have been using sudo npm update after each change made

avandurmen0001 commented 6 years ago

did you try to sudo it?

avandurmen0001 commented 6 years ago

I have run into this problem -- However I use 14.04 x64 --- any other way and npm update was full of errors..

the way I got around it was on a fresh install

adduser adduser (username) sudo su (new user) sudo apt-get update && sudo apt-get dist-upgrade sudo apt-get install git

if using swap space then build it

then sudo apt-get install build-essential libssl-dev npm nodejs nodejs-legacy curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh source ~/.profile nvm install 0.10.25 nvm use 0.10.25 git clone https://github.com/UNOMP/unified-node-open-mining-portal.git unomp cd unomp npm update

Then go get redis and install it

Then get the dependencies for your coin and compile it last

ghost commented 6 years ago

thanks this works now

avandurmen0001 commented 6 years ago

cool glad you got it working

j-creasy commented 6 years ago

so the key is DO NOT run installation as root

Nisefal commented 6 years ago

If you have problem with "Cannot find module 'merged-pooler'", just go to uNomp -> node_modules and run command $ mv ./stratum-pool ./merged-pooler Also, if you don't have stratum-pool here, just run $ npm install merged-pooler $ mv ./stratum-pool ./merged-pooler And, yeah, DO NOT USE sudo. That's all.