Thursday, 8 November 2018

Can someone ELI5 the version management of nodejs and the modules?

So, I've been using node/nodejs to run node-red and started up pm2 to manage the node-red process and just today I got around to updated node and node-red. I'm not exactly sure how this all works, but node has a different version than nodejs, npm has a different version, nvm different version, and node-red different version. You can install globally versus local etc.I think nvm is the manager for node and nodejs, but using nvm to update node doesn't update the nodejs version, then I updated node-red and I had to clear out all old processes in pm2 before node-red would utilize the latest version, then I realized a bunch of nodes don't "follow" node-red so I need to reinstall them using npm install such as pm2 and node-red-contrib-stoptimer. Meanwhile, I'm sure what all the modules are on the rpi somewhere, I just don't know where.​Basically my question is: what is the hierarchy of node/nodejs, and how exactly do the modules talk to each other and when updating why wouldn't the modules follow node? Really appreciate the help!

Submitted November 08, 2018 at 04:21PM by barqers

No comments:

Post a Comment