You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raspberry Pi 4 (Raspberry Pi OS Lite (64-bit) Debian Bullseye)
Docker version: 23.0.1
Node-RED image from nodered/node-red:latest - version v3.0.2
Linux Alpine 3.16.1
Node.js version v16.16.0
ZWave-JS version 8.0.0
Docker run with USB device: docker run -it --net=host --user root --device=/dev/ttyACM0 --restart=unless-stopped -v /node-red/data-1:/data -e TZ=Europe/Berlin --name node-red-3-0-2 ft/node-red:3-0-2
But installation of "npm install [email protected]" in the Docker Container doesn't work.
bash-5.1# npm install [email protected]
added 43 packages, and audited 338 packages in 30s
52 packages are looking for funding
run `npm fund` for details
7 vulnerabilities (5 low, 1 moderate, 1 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
bash-5.1# npm version node-red-node-serialport
npm ERR! Invalid version: node-red-node-serialport
npm ERR! A complete log of this run can be found in:
npm ERR! /data/.npm/_logs/2023-03-27T14_07_54_295Z-debug-0.log
Version
8.0.0
Node-RED Version
3.0.2
What hardware are you using?
Raspberry Pi
Any code to add?
The text was updated successfully, but these errors were encountered:
In essence, you need to ensure all build tools are installed in your Docker image and run npm rebuild --build-from-sourceINSIDE the docker image environment and within your .node-red directory - not outside.
I cant tell you where your .node-red directory is when using docker.
Basically, the prebuilt serilaport package binary for Alpine just doesnt work, and you need to build it your self.
and again make sure npm rebuild --build-from-source is run inside your docker environment and from within the .node-red directory or what ever directory it is for docker
Hi @normanth, my two cents are to run node-red outside of docker for this. I was all in using docker, and finally gave up trying to get it to work. I've been very happy with my decision.
unfortunately, the rebuild in .node-red in the docker container (folder with node_modules inside) did not solve the problem.
Now I've installed node-red on the Raspberry without docker and it works. It's a pity that it doesn't work with docker - that brings decisive advantages.
Now I can switch from node-red-contrib-openzwave to node-red-contrib-zwave-js.
How can we help?
Raspberry Pi 4 (Raspberry Pi OS Lite (64-bit) Debian Bullseye)
Docker version: 23.0.1
Node-RED image from nodered/node-red:latest - version v3.0.2
Linux Alpine 3.16.1
Node.js version v16.16.0
ZWave-JS version 8.0.0
Docker run with USB device:
docker run -it --net=host --user root --device=/dev/ttyACM0 --restart=unless-stopped -v /node-red/data-1:/data -e TZ=Europe/Berlin --name node-red-3-0-2 ft/node-red:3-0-2
Installation protocol of ZWave-JS:
After selection of serial port "/dev/ttyACM0" in ZWave-JS "ZWave Controller" Node-RED crashes and doesn't start anymore.
Log-File:
I have found this: serialport/node-serialport#2438
mlooise commented on Aug 27, 2022
But installation of "npm install [email protected]" in the Docker Container doesn't work.
Version
8.0.0
Node-RED Version
3.0.2
What hardware are you using?
Raspberry Pi
Any code to add?
The text was updated successfully, but these errors were encountered: