NeoxaChain / kawpow-pool

GNU General Public License v2.0
12 stars 37 forks source link

NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing #1

Closed BartManX closed 1 year ago

BartManX commented 2 years ago

pool@neox:~/kawpow-pool$ node ./init.js /home/pool/kawpow-pool/node_modules/bindings/bindings.js:121 throw e; ^

Error: The module '/home/pool/kawpow-pool/node_modules/bignum/build/Release/bignum.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 72. This version of Node.js requires NODE_MODULE_VERSION 57. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install). at Object.Module._extensions..node (module.js:681:18) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at bindings (/home/pool/kawpow-pool/node_modules/bindings/bindings.js:112:48) at Object. (/home/pool/kawpow-pool/node_modules/bignum/index.js:1:92) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10)

PvtSec commented 2 years ago

Try starting it with:

~/.nvm/versions/node/<your version>/bin/node init.js
JeffNeff commented 2 years ago

same issue.. having issues getting past this

JeffNeff commented 2 years ago

Running npm rebuild fixed the issue

spollock28269 commented 2 years ago

I had to use this solution to get around it... delete node_modules folder completely: rm -rf node_modules Clear npm cache: npm cache clear After that run: npm i

BartManX commented 2 years ago

this will fix it: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash source ~/.profile nvm install 12.13.0