![install node js nvm install node js nvm](https://www.ubuntupit.com/wp-content/uploads/2020/11/NVM-on-Fedora-Linux-nodejs.jpg)
Note: The parameter below is optional $ nvm use
#Install node js nvm install
Get Available Versions to Install $ nvm list available View Default Node Architecture Being Used $ nvm archĬhange Default Node Architecture $ nvm arch 32 Nvm just switches out which version is referenced in your path variables. Installing Node packages is the same as you are used to. Additionally, some npm modules may not be supported in the version of node you’re using, so be aware of your environment as you work. Reminder! Any global npm modules you may have installed are not shared between the various versions of node.js you have installed. Note that only 1 node version can be activate at a time. In some cases, like when installing Node.js releases from their source or installing versions of Node.js before 0.8. Below we are installing 4.4.5 and 5.10.1. Use the latest version with nvm use node Install the latest LTS version with nvm install -lts Use the latest LTS verison with nvm use -lts Step 1 (Optional): Ensure your system has the appropriate C++ compiler. Get a the list so you can see what is available $ nvm list available
![install node js nvm install node js nvm](https://miro.medium.com/max/1280/1*goE1Fs0ORJ0MY5SVk_qMag.png)
Another way of installing Node.js that is particularly flexible is to use nvm, the Node Version Manager. Option 3 Installing Node Using the Node Version Manager.
#Install node js nvm how to
If you originally installed to the default locations, you just need to click “next” on each window until it finishes. The next section will show how to use the Node Version Manager to install and manage multiple versions of Node.js.
![install node js nvm install node js nvm](https://res.cloudinary.com/practicaldev/image/fetch/s--MQ0X7_3Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/24bv2l7juf1rmg3j1o3e.png)
Make sure you use the same installation and symlink folder.
#Install node js nvm update
It will safely overwrite the files it needs to update without touching your node.js installations.