How can I upgrade Bootstrap 4 installed using Yarn to Bootstrap 5?
The yarn upgrade
command has a --latest
switch:
The
upgrade --latest
command upgrades packages the same as the upgrade command, but ignores the version range specified in package.json. Instead, the version specified by the latest tag will be used (potentially upgrading the packages across major versions).
In other words,
yarn upgrade bootstrap --latest
will bump the version of the bootstrap
package to whatever is the latest version available.