Score:0

Run multiple version of NodeJs

dk flag

I am in a situation where I am managing a server with 2 different projects that run different version of NodeJs and possibly React. The projects are developed by 2 different programmers, so I just wanted to know if there is a way to avoid using containers, and allow each project to run a different version of NodeJs and ReactJs.

Is there a solution?

Score:0
co flag

Yeah, is a very common situation. What you need is NVM (Node Version Manager): https://github.com/nvm-sh/nvm

About React, I am not sure, but as the dependencies' versions are on package.json, you can have a different version for every project, except for packages installed globally (with the -g flag).

guidamedia avatar
dk flag
Thanks Adrian. I did find an article that talked briefly about nvm alias. I will check this out.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.