Search code examples
angularnpmangular-clipnpm

How to change package manager used with Angular CLI (e.g. using pnpm instead of npm for `ng add`)?


Did not find much, yet for that topic, therefore using SO-question.

For commands like e.g. ng add @angular/material I would like to use the package manager of choice pnpm.


Solution

  • As simple as it sounds ;)

    ng config -g cli.packageManager pnpm