We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8169b69 commit aa34cd1Copy full SHA for aa34cd1
packages/angular/cli/tasks/install-package.ts
@@ -97,10 +97,10 @@ export function installTempPackage(
97
// setup prefix/global modules path
98
const packageManagerArgs = getPackageManagerArguments(packageManager);
99
const tempNodeModules = join(tempPath, 'node_modules');
100
+ // Yarn will not append 'node_modules' to the path
101
+ const prefixPath = packageManager === PackageManager.Yarn ? tempNodeModules : tempPath;
102
const installArgs: string[] = [
- packageManagerArgs.prefix,
- // Yarn will no append 'node_modules' to the path
103
- packageManager === PackageManager.Yarn ? tempNodeModules : tempPath,
+ `${packageManagerArgs.prefix}="${prefixPath}"`,
104
packageManagerArgs.noLockfile,
105
];
106
0 commit comments