npm i -g @angular/cli latest code example Example: npm install -g angular cli npm install -g @angular/cli