Skip to content

Commit 6c2d956

Browse files
alan-agius4mgechev
authored andcommitted
fix(@angular/cli): remove no-bin-links during npm/yarn install
Previously we passed `--no-bin-links` because we used to install packages globally in some cases. But now this is no longer needed as we should now have permissions to generate "local" bin links even during a temp installations as these will no longer generate bin links in the global context. Fixes #16133
1 parent 6c1ab62 commit 6c2d956

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ interface PackageManagerOptions {
2121
saveDev: string;
2222
install: string;
2323
prefix: string;
24-
noBinLinks: string;
2524
noLockfile: string;
2625
}
2726

@@ -39,7 +38,6 @@ export function installPackage(
3938
packageManagerArgs.install,
4039
packageName,
4140
packageManagerArgs.silent,
42-
packageManagerArgs.noBinLinks,
4341
];
4442

4543
logger.info(colors.green(`Installing packages for tooling via ${packageManager}.`));
@@ -153,15 +151,13 @@ function getPackageManagerArguments(packageManager: PackageManager): PackageMana
153151
saveDev: '--dev',
154152
install: 'add',
155153
prefix: '--modules-folder',
156-
noBinLinks: '--no-bin-links',
157154
noLockfile: '--no-lockfile',
158155
}
159156
: {
160157
silent: '--quiet',
161158
saveDev: '--save-dev',
162159
install: 'install',
163160
prefix: '--prefix',
164-
noBinLinks: '--no-bin-links',
165161
noLockfile: '--no-package-lock',
166162
};
167163
}

0 commit comments

Comments
 (0)