无法安装“合并池"模块节点 [英] Unable to install "merged-pooler" module nodeJs

查看:99
本文介绍了无法安装“合并池"模块节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我已从运行Ubuntu Server& amp;的Amazon租用了VPS.我正在尝试建立一个莱特币矿池,以便我的矿工可以指向它. (这本来是一个私人泳池) 到目前为止,我已经安装了Litecoin软件包,进行了更新,并启动并运行了Litecoind,下载了所有区块并保持最新状态.我已经按照我使用的指南中的指示安装了UNOMP并设置了配置文件. (在此处找到: https://blockgen.net/setup-your-own-mining-池)

So I've leased a VPS from Amazon running Ubuntu Server & I'm trying to setup a Litecoin mining pool so I can point my miners to it. (This is meant to be a private pool) So far I've installed Litecoin packages, updated, and got Litecoind up and running, all blocks downloaded and up to date. I've installed UNOMP and setup the configuration files as directed in the guide I'm using. (Found Here: https://blockgen.net/setup-your-own-mining-pool)

我要执行的最后一步是运行init.js文件并启动池. 不幸的是,它没有工作,而是抛出了以下错误消息.对此的任何帮助将不胜感激-我已经整整整整一周地工作,并且用尽了我可以在Google上找到的所有可能资源,但似乎没有任何效果.我在讲话时把头发扯下来;)

I'm on the very last step which is to run the init.js file and launch the pool. Unfortunately instead of working, it throws out the following error message. Any help with this would be greatly appreciated--I've been working at this all week long and have exhausted every possible resource on Google that I can find and nothing seems to work. I'm ripping my hair out as we speak ;)

这是被抛出的错误:

ubuntu@ip-172-26-4-125:/home/nick/unomp$ sudo node init.js


module.js:328
throw err;
^

Error: Cannot find module 'merged-pooler'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/nick/unomp/libs/poolWorker.js:1:77)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)

**********更新********* 安装了最新版本的NodeJ 最新版本的npm安装 -这已修复了我收到的"node-gyp"错误. 剩下要做的唯一一件事就是使"sudo npm install merged-pooler"正常工作.现在,它消除了一个我尝试研究但找不到任何东西的较小错误,并发布在下面:

**********UPDATE********* Latest version of NodeJs installed Latest version of npm install -This has fixed the "node-gyp" error I was receiving. The only thing left to do is get 'sudo npm install merged-pooler' to work. It is now kicking out a much smaller different error that I've tried to research but can't find anything on, posted below:

ubuntu@ip-172-26-4-125:/home/nick/unomp$ sudo npm install merged-pooler
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master 
git://github.com/UNOMP/node-merged-pool.git 
/home/ubuntu/.npm/_cacache/tmp/git-clone-a85b3ede
npm ERR! /home/ubuntu/.npm/_cacache/tmp/git-clone-a85b3ede/.git: Permission 
denied
npm ERR!

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2017-07-31T23_29_34_792Z-debug.log
ubuntu@ip-172-26-4-125:/home/nick/unomp$

推荐答案

我遇到了完全相同的问题.我设法通过运行以下命令解决了该问题.注意:以root身份执行:

I was having the exact same problem. I managed to solve it by running the following commands. Note: Execute as root:

source ~/.profile
nvm install 0.10.25
nvm use 0.10.25
apt install redis
npm update
npm install bignum
npm install stratum-pool
npm install merged-pooler

然后,最后尝试运行您的池节点:

And then, finally try running your pool node:

node init.js

祝你好运!

这篇关于无法安装“合并池"模块节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆