diff --git a/packages/nx/src/utils/package-manager.ts b/packages/nx/src/utils/package-manager.ts index 896f568efbb07d..3fcb93fb9c43e5 100644 --- a/packages/nx/src/utils/package-manager.ts +++ b/packages/nx/src/utils/package-manager.ts @@ -82,7 +82,7 @@ export function getPackageManagerCommand( }, pnpm: () => { const pnpmVersion = getPackageManagerVersion('pnpm', root); - const useExec = gte(pnpmVersion, '6.13.0'); + const useExec = gte(pnpmVersion, '6.13.0') && lt(pnpmVersion, '7.0.0'); const includeDoubleDashBeforeArgs = lt(pnpmVersion, '7.0.0'); const isPnpmWorkspace = existsSync(join(root, 'pnpm-workspace.yaml'));