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

Viewed 5487
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
3 Answers

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

DISCLAIMER: We were getting this error specifically trying to run a React Native build for iOS in Microsoft AppCenter. The OP question did not specify the environment so depending on your setup your mileage may vary.

In our specific circumstance, the issue was resolved by bumping the XCode version from 10.1 to 11.3.

I resolved this updating the node to LTS version:

nvm install --lts
Related