Add README install for Yarn 2+ using 'yarn dlx' #12313
Open
+29
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit brings the README up to date with yarn latest.
See https://yarnpkg.com/
Yarn 3 is the latest stable version of
yarn
,such as installed by running this command:
$ yarn set version latest
Yarn 2 introduced the new command 'yarn dlx' which downloads and executes
a package in a temporary environment. This is the preferred way to work with
Yarn 2 and Yarn 3, as explained on the Yarn website page about 'yarn dlx'.
See https://yarnpkg.com/cli/dlx
Yarn 1 is helpful to still have in the instructions because some developers
still use it for historical reasons, such as needing to manage a third-party
package that has not been updated to work with Yarn 2 or Yarn 3.
However, the Yarn 1 instructions do not work correctly with Yarn latest.