How can I update/downgrade package version with yarn?
29,520
Solution 1
Looks like you can use yarn upgrade package@version
. Just set version
to whatever version you want to use.
Solution 2
This is the official documentation https://classic.yarnpkg.com/en/docs/cli/upgrade There is no keyword for downgrading to a specific version.you have to use the upgrade keyword for both
yarn upgrade package@version
For example
yarn upgrade @types/express-session@^1.15.16
Author by
Admin
Updated on July 09, 2022Comments
-
Admin almost 2 years
I have a package and I want to downgrade the version use. How can I do this with yarn "dependencies"?