Using Volta:
volta pin node yarn
In add into package.json:
"volta": { "node": "14.15.1", "yarn": "1.22.10" }