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