I tried updating npm to see if it would solve some dependency problems we were having, and now I want to downgrade to the version the rest of the development team is using. How can I install an older version?
I updated npm according to the instructions on the About npm CLI versions:
The latest release of
npmThe latest release of
npmis the most recent stable version. When you install Node.js,npmis automatically installed. However,npmis released more frequently than Node.js, so to install the latest stable version ofnpm, on the command line, run:
npm install npm@latest -g