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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: