Home » How To Downgrade An NPM Package

How To Downgrade An NPM Package

Last updated on September 1, 2020 by

Sometimes, It is useful to downgrade an NPM package to resolve a compatibility issue. So friends, without wasting a second let’s see how to do it.

Using the @ below syntax, You can easily install an older version of an npm package:


npm install <package>@<version>


Let’s suppose, you had installed Axios npm package version 0.18.0 but now you want to downgrade it to 0.15.0 then you can do something like below:

npm install [email protected]

How To List All Versions Of Any NPM Package?

You might also be curious to know that how to see all versions of any NPM package. Belive me it is very very is to see all the available versions of any NPM package by running just one single command as below:


npm view <package> versions


> npm view axios versions

[ '0.1.0',
  '0.20.0' ]

That’s all for the day. We hope this article helped you to Downgrade An NPM Package.

Additionally, read our guide on How To Declare A Global Variable in Vue

Please let us know in the comments if everything worked as expected, your issues, or any questions. If you think this article saved your time & money, please do comment, share, like & subscribe. Thank you in advance 🙂 Keep Smiling! Happy Coding!


Leave a Comment