How to generate a new Angular 4 project instead of creating generating Angular 6?

  • A+
Category:Languages

I recently just installed Angular on my Ubuntu 16.04 computer following the documentation found here. But when i generate a new Angular project, it generates Angular 6.

How do i generate specific angular 4 project?

 


You can following these steps to generate an Angular 4 project

> npm remove -g @angular/cli > npm install -g @angular/cli@1.4.10 > ng --version   @angular/cli: 1.4.10 > ng new myangular4 

Assuming that you already have angular cli installed in your system, the steps above will remove the current angular cli installed an will be replaced by an angular cli that can generate Angular 4.

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: