Skip to content

Instantly share code, notes, and snippets.

@ajai8085
Created February 4, 2019 09:41
Show Gist options
  • Save ajai8085/fa5252df3f97735108759ca0b9350b76 to your computer and use it in GitHub Desktop.
Save ajai8085/fa5252df3f97735108759ca0b9350b76 to your computer and use it in GitHub Desktop.
Install NVM on Fedora

Install NVM on Fedora

1. Install node and NPM:

sudo dnf install -y nodejs npm

2. Install NVM via NPM:

sudo npm install -g nvm

3. install package

3.1. Clear cache
sudo npm install -g n 
3.2. Install n
sudo npm install -g n 

4. Install version

sudo n {version or stable}

5. Select version

sudo ln -sf /usr/local/n/versions/node/6.0.0/bin/node /usr/bin/node
@theabhayprajapati
Copy link

here 'n' means node version e.g 'v18.12.0'

@nonki72
Copy link

nonki72 commented Sep 25, 2023

3.1. Clear cache
sudo npm install -g n

is tihs a mistake?

@nonki72
Copy link

nonki72 commented Sep 25, 2023

2. Install NVM via NPM:
sudo npm install -g nvm

this is not the current node version manager

@mverch67
Copy link

For Fedora you'll want
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

And you can check the latest release here:
https://github.com/nvm-sh/nvm/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment