目录

nvm: Cannot uninstall currently-active node version, vx.x.x (inferred from x.x.x)

#使用nvm卸载node版本时报错如下:

1
2
$ nvm: Cannot uninstall currently-active node version, vx.x.x (inferred from
  x.x.x)

需要先退出已经使用的node环境

1
$ nvm deactivate

然后再执行卸载命令

1
$ nvm uninstall vx.x.x