Using ‘n’ (Node Version Manager):

1.Install ‘n’ globally using npm (if you haven’t already):

npm install -g n

2.List available Node.js versions:

n ls-remote

3.Install the desired older version:

n <version>

4.Switch to the installed version:

n

5.Verify the installed node.js version:

node -v

Using ‘nvm’ (Node Version Manager):

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
source ~/.bashrc
nvm ls
nvm install <version>
nvm use <version>
node -v

Support On Demand!

                                         
Node