yarn set version
This command will update the packageManager field in the local project’s top-level package.json file to the specified version.
Unlike in Yarn 2 to 4, it will never set the deprecated yarnPath field.
This command will update the packageManager field in the local project’s top-level package.json file to the specified version.
Unlike in Yarn 2 to 4, it will never set the deprecated yarnPath field.