Skip to content

Commit

Permalink
refactor(@angular/cli): fix incorrect merge in install package
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and vikerman committed Nov 6, 2019
1 parent 91331e2 commit 9e7000d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/angular/cli/tasks/install-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,7 @@ export function installTempPackage(

// setup prefix/global modules path
const packageManagerArgs = getPackageManagerArguments(packageManager);
let tempNodeModules: string;
if (packageManager !== PackageManager.Yarn && process.platform !== 'win32') {
// Global installs on Unix systems go to {prefix}/lib/node_modules.
// Global installs on Windows go to {prefix}/node_modules (that is, no lib folder.)
tempNodeModules = join(tempPath, 'lib', 'node_modules');
} else {
tempNodeModules = join(tempPath, 'node_modules');
}
const tempNodeModules = join(tempPath, 'node_modules');

const installArgs: string[] = [
packageManagerArgs.prefix,
Expand Down

0 comments on commit 9e7000d

Please sign in to comment.