I use windows and I have multiple instances of node-red, all of them with their respective NSSM service.
All are version 1.0.6 and my nodejs is v10.15.3
Now I have to create a new node-red instance
nodejs version 10 will be without maintenance in April, so i think i will need to update on this machine to v12
I've been searching the forum and google and found NVM,
is this a solution to my problem?
Does this have any drawbacks?
Is it possible that my version 1.0.6 nodes get corrupted if I update nodejs directly?
what do you think about this?
Yes, it can be problematic - search the forum for NVM
No but if there are nodes that are "built" (e.g. serial port) you will need to do npm rebuild - covered many times on the forum - search npm rebuild
PS. backup your flows before starting - not 100% necessary (as they should be un-touched) but provides piece of mind that you can get back to where your started if you mess up.
some NPM modules are "built" (c++ bindings) when installed. They are build based on the nodejs version. So if you upgrade, the bindings will not match & so need to be rebuilt. TBH, its just easier (cleaner) to pretty much start again.