首先我跟着this,我设法安装了最新版本。但是,我没有切换到它
installed : v19.7.0 to /usr/local/bin/node
active : v10.24.1 at /Users/xxx/.nvm/versions/node/v10.24.1/bin/node
所以我尝试用nvm做switch,但是由于v19.7.0没有安装在/.nvm下,nvm无法识别它。
% nvm use 19
N/A: version "19 -> N/A" is not yet installed.
You need to run "nvm install 19" to install it before using it.
我知道可以使用别名在不同版本之间切换,但我不希望它只适用于一个终端窗口。而且我不想用 nvm 再次下载 v19.7.0。
为什么 n 没有按预期工作以及如何进行切换?