Currently, I have node 18.3.0 and hardhat does not support that. It asked to switch to a stable LTS version which is node 16.15.1.
So I ran the following commands
npm cache clean -f
npm install -g n
n stable
It installed the LTS version 16.15.1 but the active version is still 18.3.0 How do I change it to LTS?