Can anybody build zeromq.js for native Mac Arm these days?
The README.md says that binary is available for Mac x86 only. However, running npm i zeromq on Mac M1 succeeds without an attempt to build the library. Starting the nodejs app fails with,
Error: Failed to load zeromq.js addon.node: Error: ENOENT: no such file or directory, scandir '/Users/***/build/darwin/arm64/node'
Error: ENOENT: no such file or directory, scandir '/Users/***/build/darwin/arm64/node'
I assume this means the libzmq binary is not available. So I try to build it from source by adding the build_from_source option to .npmrc. The build however fails due vcpkg-tool issue. It appears the vcpkg-tool is in a dire state and is broken.
npm error -- Updating /Users/***/vcpkg
npm error Already up to date.
npm error Downloading vcpkg-macos...
npm error vcpkg package management program version 2025-02-11-bec4296bf5289dc9ce83b4f5095943e44162f9c2
npm error
npm error See LICENSE.txt for license information.
npm error -- Running vcpkg install
npm error error: try_read_contents("/Users/***/vcpkg/scripts/vcpkg-tools.json"): No such file or directory
I'm sure this happens to more users. Does anyone have an idea how to resolve it?
Can anybody build zeromq.js for native Mac Arm these days?
The README.md says that binary is available for Mac x86 only. However, running
npm i zeromqon Mac M1 succeeds without an attempt to build the library. Starting the nodejs app fails with,I assume this means the libzmq binary is not available. So I try to build it from source by adding the
build_from_sourceoption to .npmrc. The build however fails due vcpkg-tool issue. It appears the vcpkg-tool is in a dire state and is broken.I'm sure this happens to more users. Does anyone have an idea how to resolve it?