diff --git a/packages/angular/cli/utilities/install-package.ts b/packages/angular/cli/utilities/install-package.ts index ea1776c3e07a..b340a5e83d70 100644 --- a/packages/angular/cli/utilities/install-package.ts +++ b/packages/angular/cli/utilities/install-package.ts @@ -204,7 +204,7 @@ export async function runTempPackageBin( throw new Error(`Cannot locate bin for temporary package: ${packageNameNoVersion}.`); } - const argv = [binPath, ...args]; + const argv = [`'${binPath}'`, ...args]; const { status, error } = spawnSync('node', argv, { stdio: 'inherit',