janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.48k stars 1.11k forks source link

installation error with node.js v21.5.0 #608

Open 3ntranced opened 6 months ago

3ntranced commented 6 months ago

I am getting this error when running "npm install"

npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error:make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm ERR! gyp ERR! System Linux 6.1.0-17-amd64 npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd /home/btcrpcexplorer/btc-rpc-explorer/node_modules/zeromq npm ERR! gyp ERR! node -v v21.5.0 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /home/btcrpcexplorer/.npm/_logs/2024-01-03T21_11_40_087Z-debug-0.log`

mikeygee commented 6 months ago

I had the same issue on MacOS / Node v21. Downgrading to Node v20 resolved it for me. It appears to be an issue with zeromq on Node v21:

https://github.com/zeromq/zeromq.js/issues/591 https://github.com/zeromq/zeromq.js/issues/592

It sounds like it may be fixed in the beta version 6.

3ntranced commented 6 months ago

thank you setting zeromq dependency to beta 6 release worked for me