Reputation: 27
I use yarn
I have an @angular application with lib modules in several repos.
I want to upgrade all @angular dependencies from one module to the version from another one. NOT to the latest Bugfix
desired version: 11.2.7
latest: 11.2.13
How can I do that?
with
yarn upgrade --scope @angular
they get upgraded to 11.2.13
Upvotes: 2
Views: 1466
Reputation: 48
yarn add package-name
this will install the "latest" version of the package.
yarn add [email protected]
this will install a specific version of a package from the registry.
yarn add package-name@tag
this will install a specific "tag" (e.g. beta, next, or latest).
You should use yarn add [email protected]
Upvotes: 1
Reputation: 59
you can install a specific version of a dependency with yarn using the following command:
yarn add dependency@version
so in your case you would use:
yarn add [email protected]
Upvotes: 0