Skip to content

ng-add forces use of NPM to install dependencies even when another package manager is configured in angular.json #513

Closed
@FabienDehopre

Description

@FabienDehopre

When you install the package using ng add @testing-library/angular and you have configured another package manager than NPM, the install phase fails.

Capture d’écran 2025-01-10 à 10 04 11

In the code of the ng-add schematics, the packageManager has a default value set to "npm".

export function installDependencies(packageManager = 'npm') {

I think if you don't pass the packagerManager option, the NodePackageInstallTask task should use the package manager configured in the angular.json file, right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions