Skip to content

Commit 9e7000d

Browse files
alan-agius4vikerman
authored andcommitted
1 parent 91331e2 commit 9e7000d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/angular/cli/tasks/install-package.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,7 @@ export function installTempPackage(
7878

7979
// setup prefix/global modules path
8080
const packageManagerArgs = getPackageManagerArguments(packageManager);
81-
let tempNodeModules: string;
82-
if (packageManager !== PackageManager.Yarn && process.platform !== 'win32') {
83-
// Global installs on Unix systems go to {prefix}/lib/node_modules.
84-
// Global installs on Windows go to {prefix}/node_modules (that is, no lib folder.)
85-
tempNodeModules = join(tempPath, 'lib', 'node_modules');
86-
} else {
87-
tempNodeModules = join(tempPath, 'node_modules');
88-
}
81+
const tempNodeModules = join(tempPath, 'node_modules');
8982

9083
const installArgs: string[] = [
9184
packageManagerArgs.prefix,

0 commit comments

Comments
 (0)