yarn policies set-node-version 20.11.0 This creates .yarn-version file. When others run yarn , they’ll see a warning if their Node mismatches. Yarn Berry can run a specific Node version without changing your system Node:
Then run:
yarn install --check-files Use package.json engines field or .yarnrc.yml : yarn update node