I use NR 0.20 on a Raspberry pi. I would like to use the Noble Node to be able to read the Ruuvitag via BLE. According to the makers, there is an issue with the NodeJS 10 version. Is there a possibility to downgrade the current version to e.g. version 8? Have looked at NVM, the default NodeJS is now 8, but when starting Nodered, 10.15.3 remains reported. Can anyone help me.
Assuming you used the pi install/upgrade script to install it, and assuming it is not a Pi Zero then first uninstall nodejs
sudo apt-get remove nodejs
Then edit the file
/etc/apt/sources.list.d/nodesource.list. You should find it contains something like
deb https://deb.nodesource.com/node_10.x jessie main deb-src https://deb.nodesource.com/node_10.x jessie main
Change the 10 to 8 on each line. Then run
sudo apt-get update sudo apt-get install nodejs
Not sure whether you then have to rebuild everything for the new nodejs. Someone else can perhaps comment on that.
Right, after downgrading you should follow the advice in the Upgrading node.js section of
Thanks you for your quick respons. I will give it a try.
I will let you know if it helps me.
Node.js version seems downgraded.
nodered editor gives an error:
Flows stopped due to missing node types.
node-red-log gives an warning
13 Mar 22:19:17 - [warn] [node-red-node-sqlite/sqlite]
Error: Cannot find module '/home/pi/.node-red/node_modules/sqlite3/lib/binding/node-v57-linux-arm/node_sq lite3.node' (line:4)
I have tried to reinstall sqlite-node. But that didn't solve the problem.
yeah this is due to the downgrade...
uninstall sqlite-node - and also uninstall the node-red-node-sqlite node - then in the
~/.node-red directory run an
npm clean --force then reinstall the node-red node (only) - as per it's readme
npm i --unsafe-perm node-red-node-sqlite
and then prepare to wait - it seems to take about 40 minutes or so to rebuild
Tnx. That did the job.