Adding packageManager
in angular.sjon
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects" {
...
},
"cli": {
"packageManager": "npm" // either select yarn, npm, pnpm or cnpm
}
}
Top comments (3)
What is the usefulness of this?
Ex: If working with yarn packages then or other packages this would be very useful. Just add like this.
"cli": {
"packageManager": "yarn"
}
Next install some package. Example: Angular Material.
Now it install yarn package of it. Not default ie, npm
Thank you!