We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7de111c commit 90921aaCopy full SHA for 90921aa
e2e/utils/index.ts
@@ -610,9 +610,13 @@ export function getPackageManagerCommand({
610
611
const publishedVersion = `9999.0.2`;
612
613
+ const [npmMajorVersion] = execSync(`npm -v`).toString().split('.');
614
+
615
return {
616
npm: {
- createWorkspace: `npx create-nx-workspace@${publishedVersion}`,
617
+ createWorkspace: `npx ${
618
+ +npmMajorVersion >= 7 ? '--yes' : ''
619
+ } create-nx-workspace@${publishedVersion}`,
620
runNx: `npm run nx${scriptsPrependNodePathFlag} --`,
621
runNxSilent: `npm run nx --silent${scriptsPrependNodePathFlag} --`,
622
addDev: `npm install --legacy-peer-deps -D`,
0 commit comments