Good evening @jerome,
I made this list to reinstall Node-RED from scratch
Installation of Node-RED
1 - run @VonOx’s command
docker run -d \
--log-opt max-size=10m \
--restart=always \
--network=host \
--name node_red \
-u node-red:dialout \
--device=/dev/ttyUSB0 \
--device=/dev/ttyUSB1 \
--label com.centurylinklabs.watchtower.enable=false \
-v /var/lib/node-red:/data \
nodered/node-red
2 - then this one
sudo chown -R 1000:1000 /var/lib/node-red
3 - Generate a hash: For more accuracy watch Pierre-Gilles’ video: Intégrer Node-RED avec Gladys Assistant en MQTT | Gladys Assistant
Generate a hash
docker exec -it node_red node-red admin hash-pw
4 - Edit the file with nano: Don’t forget sudo (I need it in front)
sudo nano /var/lib/node-red/settings.js
Remove the double // between « adminAuth: » and the matching closing brace } corresponding to adminAuth: {
5 - Paste the generated hash
6 - Then restart Node-RED
docker restart node_red
Downgrading the Serialport version
we will use version 0.15.0 instead of version 1.0.1
thanks to @Bjm
So you need to keep the node-red-node-serialport version 0.15.0. To get this version, follow @Bjm’s tutorial, which I paste below
I installed node-red-node-serialport version 0.15.0 which worked on my 32-bit
https://www.npmjs.com/package/node-red-node-serialport/v/0.15.0
1 - In the terminal to open a shell in docker
docker exec -it node_red /bin/bash
this returns me
bash-5.0#
2 - I append the following command
npm i node-red-node-serialport@0.15.0
it churns and at the end returns this to me:
notice created a lockfile as package-lock.json. You should commit this file.
node-red-node-serialport@ 0.15.0
added 48 packages from 37 contributors and audited 338 packages in 60 .866s
45 packages are looking for funding
run npm fund for details
found 4 critical severity vulnerabilities
run npm audit fix to fix them, or npm audit for details
3 - Since there are 4 critical vulnerabilities I run
npm audit fix
As suggested
4 - Then
exit
5 – restart Node-RED
docker restart node_red
after that you reinstall your Serial palette, Node-RED still offers you the higher version, you click on it and when it installs it becomes 0.15.0
good luck
