想用 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
卸載成功