npm update angular cli global code example Example: npm install --save-dev @angular/cli@latest npm install --save-dev @angular/[email protected]