2.1. Now you can use some nvm commands
for the latest version (version 18.x as of this writing) use
nvm install node
2.2. Node-RED recommends node.js v14.x, so you can install this with the following command
nvm install 14.18.0
2.3 nvm can select specific version of node to use. But be aware that after reboot it will revert to the default version. Read up on nvm to change the default version.
Personally I went with installing sudo and using the node-red debian/raspbian script which made the install easy as possible. https://nodered.org/docs/getting-started/raspberrypi
those dependency must also be installed: build-essential git curl
Last if you need some specific node also check those if they are up to date:
‘g++, python3’
And if you get any error during a node installation, look for a “xxx not found”, 75% of the time it is just a missing dependency.
Between Step 2 and Step 2.1, you’ll need to log out and log back in for nvm to work properly. This is for the recent versions and may not apply to older versions.
And for Step 5.1, omit the – -v. With the – -v, the command only returns the version but does not start node red. Again, this is for the newer versions. Older versions may still work as listed in the original guide.