diff --git a/packages/devkit/src/utils/package-json.ts b/packages/devkit/src/utils/package-json.ts index a066a369f9..33fe241bfe 100644 --- a/packages/devkit/src/utils/package-json.ts +++ b/packages/devkit/src/utils/package-json.ts @@ -336,7 +336,7 @@ export async function ensurePackage( } ${pkg}@${requiredVersion}`; if (throwOnMissing) { throw new Error( - `Required package ${pkg}@${requiredVersion} is missing. Run "${installCmd}", and then try again.` + `Cannot install required package ${pkg} during a dry run. Run the generator without --dryRun, or install the package with "${installCmd}" and try again.` ); } else { execSync(installCmd, {