Skip to content
Snippets Groups Projects
Unverified Commit ef3a79bd authored by Christophe Hurpeau's avatar Christophe Hurpeau Committed by GitHub
Browse files

fix: don't try to install yarn 2 from npm (#7183)


as yarn 2 is local in the project and should be started by yarn 1 via yarn config file.
When using yarn2, installing latest yarn (v1) should work best

Co-authored-by: default avatarMichael Kriese <michael.kriese@visualon.de>
parent ee5e0ad1
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ export async function generateLockFile(
!isValidYarnRange || minVersion(yarnCompatibility).major === 1;
let installYarn = 'npm i -g yarn';
if (isValidYarnRange) {
if (isYarn1 && isValidYarnRange) {
installYarn += `@${quote(yarnCompatibility)}`;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment