用 Homebrew 安装 nvm 后,出现了很多环境变量上的问题,问题大概涉及:无法设置默认版本,选择版本报错,启动时环境变量报错等。
后查看 nvm 官方文档,官方明确指出并不支持 Homebrew 的安装方式,如果出现问题请卸载后用其他方式安装:
Homebrew installation is not supported. If you have issues with homebrew-installed nvm, please brew uninstall it, and install it using the instructions below, before filing an issue.
nvm 官方文档:https://github.com/creationix/nvm