Categories
JavaScript Answers

How to tell npm to use a different version of one of its dependencies when installing a package?

Spread the love

To tell npm to use a different version of one of its dependencies when installing a package, we put the version number after the @.

For instance, we run

npm install module@0.0.2

to run npm install to install module module version 0.0.2.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published.