Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I keep getting 'You need to run "nvm install N/A" to install it before using it.' even tho I have already installed lts/*

Tags:

nvm

nvm ls:

->       system
default -> system
unstable -> system
node -> stable (-> v12.16.3) (default)
stable -> 12.16 (-> v12.16.3) (default)
iojs -> N/A (default)
lts/* -> lts/erbium (-> v12.16.3)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.20.1
lts/erbium -> v12.16.3
like image 798
Aero Wang Avatar asked May 19 '20 03:05

Aero Wang


People also ask

What is NVM LTS version?

NVM allows users to: Locally download any of the remote Long Term Support (LTS) versions of Node. js with a simple command. Easily switch between multiple versions of Node. js, right from the command line.

How do I install the latest version of NVM using npm?

It's nvm install-latest-npm or nvm install --latest-npm . nvm install-latest-npm : Attempt to upgrade to the latest working npm on the current Node. js version. nvm install --latest-npm : After installing, attempt to upgrade to the latest working npm on the given Node.

Can I install NVM if I already have Node installed?

Q: Can I still install nvm when I already got an existing node installation? A: Yes. nvm operates by altering your PATH environment variable to determine the node version your current shell session uses.


1 Answers

use nvm alias default v12.16.3 to set default version explicitly

like image 132
Pavel Alazankin Avatar answered Oct 07 '22 20:10

Pavel Alazankin