Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with zeromq when installinw with node.js 22.12.0 #701

Open
PabloQuiros opened this issue Dec 13, 2024 · 2 comments
Open

Problem with zeromq when installinw with node.js 22.12.0 #701

PabloQuiros opened this issue Dec 13, 2024 · 2 comments
Labels

Comments

@PabloQuiros
Copy link

Hi, I am getting this error when executing npm install:

npm error code 1
npm error path /home/pablo/btc-rpc-explorer/node_modules/zeromq
npm error command failed
npm error command sh -c node ./script/install.js
npm error Building addon node via cmake-ts (requires cmake, ninja, and the vcpkg dependencies)
npm error --------------------------------------------------
npm error WARNING: Building only for the current runtime.
npm error WARNING: DO NOT SHIP THE RESULTING PACKAGE
npm error --------------------------------------------------
npm error no generator specified, checking ninja
npm error found ninja at /usr/bin/ninja
npm error running in /home/pablo/btc-rpc-explorer/node_modules/zeromq command [ 'nativeonly' ]
npm error > Setting up staging directory... [ DONE ]
npm error ---------------- BEGIN CONFIG ----------------
npm error > Distribution File Download... [ DONE ]
npm error > Determining ABI... [ DONE ]
npm error > Building directories... [ DONE ]
npm error > Applying overrides... [ DONE, 0 applied ]
npm error --------------- CONFIG SUMMARY ---------------
npm error Name: N/A
npm error OS/Arch: linux arm64
npm error Runtime: node 22.12.0
npm error Target ABI: 127
npm error Toolchain File: null
npm error Custom CMake options: no
npm error Staging area: /home/pablo/btc-rpc-explorer/node_modules/zeromq/staging/linux/arm64/node/127
npm error Target directory: /home/pablo/btc-rpc-explorer/node_modules/zeromq/build/linux/arm64/node/127

I attach the rest of the log in the file
npmErrorZeromq.txt

  • NodeJS Version 22.20
  • Code Version / Commit v.3.40
  • Installation Method: both npm and source code failed

I am working with a Raspberry Pi 5, with Raspbian

@PabloQuiros
Copy link
Author

I have already fixed it with this command:
export VCPKG_FORCE_SYSTEM_BINARIES=1

@mntbighker
Copy link

mntbighker commented Jan 8, 2025

version 3.3 is working for me, but...
Same issue here on Rocky9 with 3.4 I think. This is Rocky running on HyperV, so x86.

npm error /home/btcrpcexplorer/.cache/node-gyp/23.5.0/include/node/v8-local-handle.h:267:42: note: ‘std::integral_constant<bool, false>::value’ evaluates to false
npm error make: *** [zmq.target.mk:115: Release/obj.target/zmq/binding.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: `make` failed with exit code: 2
npm error gyp ERR! stack at ChildProcess.<anonymous> (/home/btcrpcexplorer/.nvm/versions/node/v23.6.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:216:23)
npm error gyp ERR! System Linux 5.14.0-503.19.1.el9_5.x86_64
npm error gyp ERR! command "/home/btcrpcexplorer/node_modules/node/bin/node" "/home/btcrpcexplorer/.nvm/versions/node/v23.6.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm error gyp ERR! cwd /home/btcrpcexplorer/btc-rpc-explorer/node_modules/zeromq
npm error gyp ERR! node -v v23.5.0
npm error gyp ERR! node-gyp -v v11.0.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /home/btcrpcexplorer/.npm/_logs/2025-01-08T04_03_18_191Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants