mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
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: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
ee5e0ad162
commit
ef3a79bdfe
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export async function generateLockFile(
|
||||||
!isValidYarnRange || minVersion(yarnCompatibility).major === 1;
|
!isValidYarnRange || minVersion(yarnCompatibility).major === 1;
|
||||||
|
|
||||||
let installYarn = 'npm i -g yarn';
|
let installYarn = 'npm i -g yarn';
|
||||||
if (isValidYarnRange) {
|
if (isYarn1 && isValidYarnRange) {
|
||||||
installYarn += `@${quote(yarnCompatibility)}`;
|
installYarn += `@${quote(yarnCompatibility)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue