- Zshell
- NVM
- Just place a
.nvmrc
file inside the root of you project directory and add the version to be used inside
$ echo "5.9" > .nvmrc
$ echo "lts/*" > .nvmrc # to default to the latest LTS version
Link to the article: Automatic node version switch.