Tried updating the NPM version of some dependencies, now I need to downgrade to an older version, but I can't do that.
Current NPM version: npm v9.8.1
Error: npm v9.8.1 is known to not run on Node.js v12.22.11. This version of npm supports the following node versions: ^14.17.0 || ^16.13.0 || >=18.0.0. You can find the latest version at
https://nodejs.org/
.
Your Node.js version is incompatible with the NPM version, as stated in the error. Downgrade the Node.js version via NVM, which will also downgrade NPM to the corresponding version.