fix(repo): fix running e2e tests locally with npm 7 (#6400)
This commit is contained in:
parent
7de111c25b
commit
90921aabf1
@ -610,9 +610,13 @@ export function getPackageManagerCommand({
|
||||
|
||||
const publishedVersion = `9999.0.2`;
|
||||
|
||||
const [npmMajorVersion] = execSync(`npm -v`).toString().split('.');
|
||||
|
||||
return {
|
||||
npm: {
|
||||
createWorkspace: `npx create-nx-workspace@${publishedVersion}`,
|
||||
createWorkspace: `npx ${
|
||||
+npmMajorVersion >= 7 ? '--yes' : ''
|
||||
} create-nx-workspace@${publishedVersion}`,
|
||||
runNx: `npm run nx${scriptsPrependNodePathFlag} --`,
|
||||
runNxSilent: `npm run nx --silent${scriptsPrependNodePathFlag} --`,
|
||||
addDev: `npm install --legacy-peer-deps -D`,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user