You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13527 100 13527 0 0 244k 0 --:--:-- --:--:-- --:--:-- 244k
=> Downloading nvm from git to '/home/circleci/.nvm'
=> Cloning into '/home/circleci/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
remote: Total 290 (delta 34), reused 111 (delta 20), pack-reused 0
Receiving objects: 100% (290/290), 163.37 KiB | 7.10 MiB/s, done.
Resolving deltas: 100% (34/34), done.
=> Compressing and cleaning up git repository
=> Appending nvm source string to /home/circleci/.bashrc
=> Appending bash_completion source string to /home/circleci/.bashrc
N/A: version "12.13.0 -> N/A" is not yet installed.
You need to run "nvm install 12.13.0" to install it before using it.
=> Close and reopen your terminal to start using nvm or run the following to use it now:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
N/A: version "12.13.0 -> N/A" is not yet installed.
You need to run "nvm install 12.13.0" to install it before using it.
Exited with code exit status 3
$ cat .nvmrc
12.13.0
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: