Installing Angular CLI
The documentation at https://angular.io/guide/quickstart will guide you to install @angular/cli as a global npm package. Do not do this. Overtime, as Angular CLI is upgraded, it is a constant irritant to have to keep the global and the in-project version in sync. If you don't, the tool complains endlessly. Additionally, if you are working on multiple projects, you will have varying versions of Angular CLI overtime. As a result, your commands may not return the results you expect or your team members get.
The strategy detailed in the next section will make your initial configuration of your Angular project a bit more complicated than it needs to be; however, you'll be more than making up for this pain if you return to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access