sudo dnf install -y nodejs npm
sudo npm install -g nvm
sudo npm install -g n
sudo npm install -g n
sudo n {version or stable}
sudo ln -sf /usr/local/n/versions/node/6.0.0/bin/node /usr/bin/node
sudo dnf install -y nodejs npm
sudo npm install -g nvm
sudo npm install -g n
sudo npm install -g n
sudo n {version or stable}
sudo ln -sf /usr/local/n/versions/node/6.0.0/bin/node /usr/bin/node
3.1. Clear cache
sudo npm install -g n
is tihs a mistake?
2. Install NVM via NPM:
sudo npm install -g nvm
this is not the current node version manager
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
here 'n' means node version e.g 'v18.12.0'