Tried updating NPM version for some dependencies now, I need to downgrade to older version but I m unable to do so.
Current NPM version: npm v9.8.1
ERROR: npm v9.8.1 is known not to 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/
.
2
Answers
Your Node.js version is incompatible with the NPM version, this is stated in the error.
Downgrade Node.js version via NVM, this will also downgrade NPM to the corresponding version.
You can go to the official Nodejs for download the node version 12 or install this
Node version manager
for control the version easier