how to downgrade node version
To downgrade Node.js version, you can use a package manager like NPM. Here are the steps:
- First, uninstall the current Node.js version by running:
sudo npm uninstall -g node
- Then, install the desired Node.js version using NVM (Node Version Manager) by running:
nvm install <desired_version>
- Set the default Node.js version to the one you just installed:
nvm use <desired_version>
By following these steps, you will successfully downgrade your Node.js version using NVM.