It can be difficult to work on multiple projects that use different versions of Node.
nvm
(Node Version Manger) make this easier by allowing you to download multiple versions and switch between them. You can also add a NVM configuration file (i.e. .nvmrc
) to specify which version you want to use for each project.
Create .nvmrc:
lts/erbium // v12 // or just list the version you want to use 5.12.0
Then just run:
nvm use