How to install specific NodeJS
2019-10-28 本文已影响0人
goldenfiredo
1 To see available node versions
brew search node
2 To unlink from current version
brew unlink node
3 Install any version e.g. 10
brew install node@10
4 To link installed version
brew link node@10
5 update PATH env
echo 'export PATH="/usr/local/opt/node@10/bin:$PATH"' >> ~/.bash_profile
6 To check your current node version
node --version