Skip to content

Yarn

Setup🔗

  • npm install -g yarn
  • Now set the version to latest in the project by running: yarn set version berry.

Gitignore1🔗

Normal Usage
pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Zero Installs aka Plug & Play
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

  1. https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored