(Yes, I know I have asked before. And I am again asking.)
It is a double edge sword for me that if I write something down as being the way to do it chances are it will be updated and/or changed.
I am running NR on Ubuntu 18.04 LTS and my node version is old.
(Well, I am still running pre 1 Node Red)
Anyway, following the rabbit hole of docs I found this:
How to update NODE
Yes, I know it says node.js and I am talking node.
Anyway, towards the bottom of the screen:
Upgrading Node.js
If you change the version of Node.js you are using, you may need to rebuild Node-RED’s dependencies as well as any nodes you have installed. This is because some of them contain binary components that must be rebuilt to be compatible with the new Node.js version.
This can be done using the command
npm rebuild
- but it must be run in the right directory.
There are two places it should be run:
- In your Node-RED user directory,
~/.node-red
- this is where any additional nodes you have installed are.- In the directory you installed Node-RED
If you installed Node-RED as a global module and are not sure where that put it, you can use the command
npm list -g --depth 0
to find where your global modules are installed.
Fantastic. So I need to be in ~/.node-red
Ran the command, a squillion lines of stuff flew past. ( npm rebuild
)
node -v
Same as before.
Sorry, but I am still not getting it.
This isn't going to help my credibility, but.....
In those docs:
There are two places it should be run:
COULD be run.
Should implies it has be run twice.