Skip to content

Commit

Permalink
fix(@angular/cli): support path spaces with temporary package installs
Browse files Browse the repository at this point in the history
Fixes: #16865
(cherry picked from commit 0d6dae1)
  • Loading branch information
clydin authored and dgp1130 committed Feb 11, 2020
1 parent 8169b69 commit aa34cd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/angular/cli/tasks/install-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ export function installTempPackage(
// setup prefix/global modules path
const packageManagerArgs = getPackageManagerArguments(packageManager);
const tempNodeModules = join(tempPath, 'node_modules');
// Yarn will not append 'node_modules' to the path
const prefixPath = packageManager === PackageManager.Yarn ? tempNodeModules : tempPath;
const installArgs: string[] = [
packageManagerArgs.prefix,
// Yarn will no append 'node_modules' to the path
packageManager === PackageManager.Yarn ? tempNodeModules : tempPath,
`${packageManagerArgs.prefix}="${prefixPath}"`,
packageManagerArgs.noLockfile,
];

Expand Down

0 comments on commit aa34cd1

Please sign in to comment.