macos - 重新打开终端窗口后,更改节点版本为 "nvm use <version>"未更改

标签 macos terminal nvm oh-my-zsh zshrc

在 oh-my-zsh 文件中,我通过更改 .zshrc 文件中的行添加了 nvm。

plugins=(git nvm) // added nvm

所以现在我看到 nvm 并从终端使用它

但是当我更改下面看到的版本时。

enter image description here

然后我关闭终端并打开一个新终端并检查版本,它仍然显示使用以前的版本!它没有保留零钱。

新窗口

enter image description here

最佳答案

尝试运行这个命令

nvm i v12.18.1

然后

nvm alias default v12.18.1

关于macos - 重新打开终端窗口后,更改节点版本为 "nvm use <version>"未更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62543040/

相关文章:

node.js - 使用 NVM 找不到 Typescript

ubuntu - 将终端输出到多列。

c++ - Xcode 警告 : "directory not found for option"

macos - GDB 7.6 STL pretty-print 与 gcc-4.8 和 mac os 10.9

keyboard-shortcuts - 在 debian 上但在 Mac OS X 上,option/alt + 左/右箭头的等价物是什么?

plugins - 终端中 zsh 顶部的固定行

基于 Java 文本的应用程序

javascript - 用于更改 NVM Node 版本的 Bash 脚本

npm - '模块构建失败 : Error: Couldn't find preset "es2015" relative to directory' from newly created gatsby project

macos - 如何CHMOD文件夹mac中的所有文件夹?