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:

Syntax:

npm install <package>@<version>

Example:

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:

Syntax:

npm view <package> versions

Example:

> npm view axios versions

[ '0.1.0',
  '0.2.0',
  '0.2.1',
  '0.2.2',
  '0.3.0',
  '0.3.1',
  '0.4.0',
  '0.4.1',
  '0.4.2',
  '0.5.0',
  '0.5.1',
  '0.5.2',
  '0.5.3',
  '0.5.4',
  '0.6.0',
  '0.7.0',
  '0.8.0',
  '0.8.1',
  '0.9.0',
  '0.9.1',
  '0.10.0',
  '0.11.0',
  '0.11.1',
  '0.12.0',
  '0.13.0',
  '0.13.1',
  '0.14.0',
  '0.15.0',
  '0.15.1',
  '0.15.2',
  '0.15.3',
  '0.16.0',
  '0.16.1',
  '0.16.2',
  '0.17.0',
  '0.17.1',
  '0.18.0',
  '0.18.1',
  '0.19.0-beta.1',
  '0.19.0',
  '0.19.1',
  '0.19.2',
  '0.20.0-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

    Reply
  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

    Reply

Leave a Comment

*

code