skip to Main Content

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


  1. 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.

    nvm use 12
    
    Login or Signup to reply.
  2. You can go to the official Nodejs for download the node version 12 or install this Node version manager for control the version easier

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search