To get over this problem, we can simply use NVM or Node version manager. This is going to be a very short article to get started.
First you need to install NVM depending on what system you use from here. Once done, you can cross-verify whether it works correctly by checking installed version in bash/shell/cmd
Once you have installed it, all we need to do is install specific node version that we require.
nvm install 10.10.0 # 10.10.0 is node version
Apart from the version we have installed, our system might have other versions already installed as shown in the image below
As highlighted in the image, the first version of Node pointed at with an arrow in green is the current version of Node in use. To switch to another version of Node of our interest, all we need to do is set it using NVM
It’s pretty simple to use NVM in your system to maintain and work with different projects compatible or dependent on different version of Node. These are just few of the commands to get started with NVM, you can check more about other available commands on the nvm github repository.