Skip to content

Support for Raspberry Pi (3b+) #702

Open
@joey-kwl

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions