npm install -@angular/cli@latest code example
Example 1: angular install
npm install -g @angular/cli
Example 2: angular cli update
content_copy
ng update @angular/cli @angular/core
npm install -g @angular/cli
content_copy
ng update @angular/cli @angular/core