update angular in a project code example Example: update angular npm uninstall -g @angular-cli npm install -g @angular/cli@latest