Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !12313

Add README install for Yarn 2+ using 'yarn dlx'

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Administrator requested to merge github/fork/joelparkerhenderson/main into main Apr 20, 2022
  • Overview 5
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: joelparkerhenderson

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/joelparkerhenderson/main