Open gmemstr opened 3 years ago
That’s because the command that sources nvm attempts to auto-use the version in nvmrc. You can add --install
to the source line and it will auto-install at source time - then you don’t need a separate nvm install
command unless you actually want to install a different version (“node” refers to v15 atm, whereas your nvmrc wants v12).
the other alternative is to source nvm before cd-ing into a directory with an nvmrc.
Operating system and version:
Any, as far as I can tell. Tested:
macOS Ubuntu 20.04
using CircleCI.
nvm debug
output:nvm ls
output:How did you install
nvm
?Install script in README.
What steps did you perform?
Performed above install commands to pull in the script and modify our PATH.
What happened?
nvm does not appear to know how to behave when a nvmrc file is present, and borks the install process, claiming
"N/A"
is not installed yet.What did you expect to happen?
nvm correctly installs Node version specified in
.nvmrc
.Is there anything in any of your profile files that modifies the
PATH
?No.