When installing a package with NPM, can you tell it to use a different version of one of its dependencies?

NPM install syntax:

npm install (with no args in a package dir)
npm install <tarball file>
npm install <tarball url>
npm install <folder>
npm install [@<scope>/]<name> [--save|--save-dev|--save-optional] [--save-exact]
npm install [@<scope>/]<name>@<tag>
npm install [@<scope>/]<name>@<version>
npm install [@<scope>/]<name>@<version range>
npm i (with any of the previous argument usage)

so you can choose one of these methods to install your modules.

The case of the simplest way to install a specific version is this one:

npm install module@0.0.2

more info:
https://docs.npmjs.com/cli/install

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)