Search code examples
node.jsnvm

nvm: N/A: version "N/A -> N/A" is not yet installed


I have nvm setup to use the latest long term support version in ~/.nvm/alias/default, by setting it to lts/*.

When I try and have my shell initialize my nvm version (zsh), I get the following error:

N/A: version "N/A -> N/A" is not yet installed.

Why is this happening?


Solution

  • Error: N/A: version "N/A -> N/A" is not yet installed

    I got this error after doing nvm use (switching to older Node version 8.11.1, shown in .nvmrc file), nvm uninstall (newer Node version 9.0.0), then a git push.

    nvm ls shows my "default" Node version was pointing to the uninstalled one: default -> 9.0.0 (-> N/A). This caused the error.

    To fix: nvm alias default node points "default" to the latest installed Node version (8.11.1).

    Now nvm ls shows default -> node (-> v8.11.1).