

Good, you should now have a working Yarn install! Some things might still require a bit of work (for instance we deprecated arbitrary pre/post-scripts, and renamed -frozen-lockfile into -immutable), but those special cases will be documented on a case-by-case basis in the rest of this document (for example here). Run yarn plugin list to see what other official plugins exist and might be useful.Run yarn plugin import interactive-tools if you want upgrade-interactive.Some optional features are available via external plugins: Take a look at this article to see what should be gitignored.Run yarn install to migrate the lockfile.Commit the changes so far ( yarn-X.Y.Z.js.yarnrc, you'll need to turn them into the new format (see also 1, 2) Run yarn set version berry to enable v2 (cf Install for more details).Run npm install -g yarn to update the global yarn version to latest v1.Note that those commands only need to be run once for the whole project and will automatically take effect for all your contributors as soon as they pull the migration commit, thanks to the power of yarnPath:

Only in a later optional section we will cover how to enable PnP support, and this part will only be recommended, not mandatory.

Note: Don't worry if your project isn't quite ready for Plug'n'Play just yet! This guide will let you migrate without losing your node_modules folder.

