How to install specific NodeJS

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

你可能感兴趣的:(How to install specific NodeJS)