how to downgrade node version

To downgrade Node.js version, you can use a package manager like NPM. Here are the steps:

  1. First, uninstall the current Node.js version by running:
sudo npm uninstall -g node
  1. Then, install the desired Node.js version using NVM (Node Version Manager) by running:
nvm install <desired_version>
  1. 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.