fix(devkit): update missing package message for ensurePackage for cla… (#13665)

This commit is contained in:
Jack Hsu 2022-12-06 13:34:42 -05:00 committed by GitHub
parent 8858f49baf
commit dc1b53a2c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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, {