The Right Way to Install Node and NPM in Ubuntu
Mar 2, 2021
After all my struggling while trying to install React Native as a newbie, I thought I’ll better write it for when I’ve forgotten it.
Forget about apt-get, curl on outdated urls posted on forums and all that stuff. Here is the right process, simple reproducible steps:
The first step is to install NVM (Node Version Manager). This is a piece of software that will properly install Node and NPM for us. Just follow the guide on the nvm repo: https://github.com/nvm-sh/nvm#installing-and-updating
Next, just type in the terminal:
nvm install node
And that’s it, Node and NVM will be installed the right way. Could not be simpler.