Home » How To Downgrade An NPM Package

How To Downgrade An NPM Package

Last updated on December 24, 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 axios@0.15.0

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. Believe 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:

  1. How to Select Data Between Two Dates in MySQL
  2. Error After php artisan config:cache In Laravel
  3. Specified Key Was Too Long Error In Laravel
  4. AJAX PHP Post Request With Example
  5. How To Use The Laravel Soft Delete
  6. How To Add Laravel Next Prev Pagination
  7. cURL error 60: SSL certificate problem: unable to get local issuer certificate
  8. Difference Between Factory And Seeders In Laravel
  9. Laravel: Increase Quantity If Product Already Exists In Cart
  10. How To Calculate Age From Birthdate
  11. How to Convert Base64 to Image in PHP
  12. Check If A String Contains A Specific Word In PHP
  13. Dynamically Populate A Select Field’s Choices In ACF
  14. How To Find Duplicate Records in Database
  15. Difference between del, remove and pop on lists
  16. How To Solve NPM Start Script Missing Error
  17. Easy Ways To Convert String To Int Python

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!


3 thoughts on “How To Downgrade An NPM Package”

  1. Keep up the great work, I read few content on this site and I think that your web site is really interesting and has got sets of great info . Maridel Ambros Corwun

  2. This is a wonderful news regarding bloggers. It opens admission to a huge spectrum of individuals who are finding an establishment to express their inquiries. With your theme, I could gain the visibility We are having at this moment. Thanks just for this informative publish, I learned a whole lot! Add Free link


Leave a Comment