想用 nvm 卸载掉当前版本的node, 发现不成功,报这个错:
➜ ✗ nvm uninstall v12.22.10 nvm: Cannot uninstall currently-active node version, v12.22.10 (inferred from v12.22.10).
解决方案:
先执行一遍:
➜ ✗ nvm deactivate
/Users/yangyanhui/.nvm/*/bin removed from ${PATH}
在运行:
➜ ✗ nvm uninstall v12.22.10 Uninstalled node v12.22.10
卸载成功