diff --git a/packages/create-react-app/createReactApp.js b/packages/create-react-app/createReactApp.js index 5d837c60400..131a99b418e 100755 --- a/packages/create-react-app/createReactApp.js +++ b/packages/create-react-app/createReactApp.js @@ -258,7 +258,7 @@ function createApp(name, verbose, version, useNpm, usePnp, template) { } } - if (useYarn) { + if (useYarn && !semver.valid(version)) { fs.copySync( require.resolve('./yarn.lock.cached'), path.join(root, 'yarn.lock')