5
macOS 使用 homebrew 切换不同 nodejs 版本
source link: https://blog.kelu.org/tech/2023/12/12/mac-homebrew-switch-nodejs-version.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
which brew # 确认是arm下的brew还是x86下的brew
which node
brew search node
brew install node@14
brew unlink node@18
brew link --overwrite --force node@14
node -v
ps:npm命令随着node一起安装的。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK