We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9971653 commit f80d27bCopy full SHA for f80d27b
packages/create-react-app/createReactApp.js
@@ -594,7 +594,11 @@ function checkYarnVersion() {
594
yarnVersion = execSync('yarnpkg --version')
595
.toString()
596
.trim();
597
- hasMinYarnPnp = semver.gte(yarnVersion, '1.12.0');
+ let trimmedYarnVersion = /^(.+?)[-+].+$/.exec(yarnVersion);
598
+ if (trimmedYarnVersion) {
599
+ trimmedYarnVersion = trimmedYarnVersion.pop();
600
+ }
601
+ hasMinYarnPnp = semver.gte(trimmedYarnVersion || yarnVersion, '1.12.0');
602
} catch (err) {
603
// ignore
604
}
0 commit comments