dvandal / cryptonote-nodejs-pool

Mining pool for all CryptoNote based coins using Cryptonight, Cryptonight Light and Cryptonight Heavy algorithms
GNU General Public License v2.0
367 stars 611 forks source link

Compile pool with nodejs 11 #654

Closed username1565 closed 3 years ago

username1565 commented 3 years ago

Hello. I did try to compile this pool on Ubuntu 18.04 LTC (Bionic) WSL, on Windows 10 Pro. I got success, but there was been so many warnings.

The following things I want to tell you.

I had nodejs v12 (node -v -> 12+). Solution: I used n.

sudo n 11
node -v
----> 11+

Also, on try to run npm update

npm WARN fetch-blob@2.1.1 requires a peer of domexception@^2.0.1 but none is installed. You must install peer dependencies yourself.

solution: npm install domexception@^2.0.1

then:

npm WARN ws@7.4.3 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.4.3 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

Solution

    wants utf-8-validate@^5.0.2 to be installed.

Then

npm install utf-8-validate@^5.0.2

OK, then,

npm install bufferutil@^4.0.1

OK.

Also, I saw some throw exception with bignum. Solution: npm rebuild bignum OK.

After all, run poll OK.

You can add this packages, with versions of this, into package.json.

Best regards.

username1565 commented 3 years ago

I had nodejs v12 (node -v -> 12+). Solution: I used n.

node -v
----> 11+

About installation of n:

sudo npm install -g n

then you can change after to lastest node's LTS by running

sudo n [version to install]

learn more with

n --help