Site icon The Perpetual Student

Setting Angular CLI to NPM or Yarn

Angular

I’ve recently switched back to using NPM from Yarn as my default package manager due to Angular project problems.  The following two commands will let you switch between Yarn and NPM:

# Switch to Yarn
ng set --global packageManager=yarn

# Switch to NPM
ng set --global packageManager=npm

The main reason that I had to switch back was because of Angular builds created errors during AWS CodeBuild automation processes.

Source: Medium

Exit mobile version