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

Support for Raspberry Pi (3b+) #702

Open
joey-kwl opened this issue Jan 23, 2025 · 2 comments
Open

Support for Raspberry Pi (3b+) #702

joey-kwl opened this issue Jan 23, 2025 · 2 comments

Comments

@joey-kwl
Copy link

Is your feature request related to a problem? Please describe.

My docker builds on my Pi 3b+ are failing during npm install and I receive the followig error:

Error log (click to open)
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm error code 1
npm error path /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 Error: Failed to load zeromq.js addon.node: Error: ENOENT: no such file or directory, scandir '/node_modules/zeromq/build/linux/arm/node'
npm error Error: ENOENT: no such file or directory, scandir '/node_modules/zeromq/build/linux/arm/node'
npm error     at Object.readdirSync (node:fs:1506:26)
npm error     at findAddon (/node_modules/zeromq/lib/load-addon.js:22:43)
npm error     at Object.<anonymous> (/node_modules/zeromq/lib/load-addon.js:50:15)
npm error     at Module._compile (node:internal/modules/cjs/loader:1469:14)
npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
npm error     at Module.load (node:internal/modules/cjs/loader:1288:32)
npm error     at Module._load (node:internal/modules/cjs/loader:1104:12)
npm error     at Module.require (node:internal/modules/cjs/loader:1311:19)
npm error     at require (node:internal/modules/helpers:179:18)
npm error     at main (/node_modules/zeromq/script/install.js:26:7)
npm error     at findAddon (/node_modules/zeromq/lib/load-addon.js:43:15)
npm error     at Object.<anonymous> (/node_modules/zeromq/lib/load-addon.js:50:15)
npm error     at Module._compile (node:internal/modules/cjs/loader:1469:14)
npm error     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
npm error     at Module.load (node:internal/modules/cjs/loader:1288:32)
npm error     at Module._load (node:internal/modules/cjs/loader:1104:12)
npm error     at Module.require (node:internal/modules/cjs/loader:1311:19)
npm error     at require (node:internal/modules/helpers:179:18)
npm error     at main (/node_modules/zeromq/script/install.js:26:7)
npm error     at Object.<anonymous> (/node_modules/zeromq/script/install.js:34:1)
npm error 'os' was missing in the 'configurations'. Defaulting to the current operating system linux
npm error 'arch' was missing in the 'configurations'. Defaulting to the current architecture arm
npm error `runtime` was missing in the `configurations`. Defaulting to `node`
npm error 'runtimeVersion' was missing in the 'configurations'. Defaulting to the current runtimeVersion 20.18.1
npm error cmake binary not found, try to specify 'cmakeToUse'
npm error node:child_process:930
npm error     throw err;

Describe the solution you'd like
A version that support Raspberry pi 3b+ for me to install.

Describe alternatives you've considered
No problems on windows, but I want it to run on my Pi.

Additional context

Dockerfile:

FROM node:20
COPY package.json .
RUN npm install zeromq
RUN npm install
COPY . .

Zeromq version 6.3.0

dpkg --print-architecture returns armhf

@aminya
Copy link
Member

aminya commented Jan 23, 2025

You'll need to install the dependencies for building from the source
https://github.com/zeromq/zeromq.js#building-from-source

@joey-kwl
Copy link
Author

It probably would have worked, but my Pi was having such a hard time with compiling, so switched to python.

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

No branches or pull requests

2 participants