Angular-cli: How to create angular 4 project with latest angular cli

Created on 27 Feb 2018  ·  7Comments  ·  Source: angular/angular-cli

angular cli

I am using angular cli 1.6.1 . 'ng new' command creating angular 5 project. How can i switch angular version to 4.

Thanks in advance.

Most helpful comment

You can use below command to create angular 4 project using higer versinos of CLI
ng new yourProjectName -ng4

All 7 comments

i think you can update package.json set the dependencies like @angular/... from 5 to 4.
then do npm install.
of course, it not a very good solution, because it will update @angular/core@angular/compiler ... etc.

this isn't actually a issue .

Closing as answered by @lomo1 and @blackholegalaxy, thanks!

You can use below command to create angular 4 project using higer versinos of CLI
ng new yourProjectName -ng4

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IngvarKofoed picture IngvarKofoed  ·  3Comments

jbeckton picture jbeckton  ·  3Comments

rajjejosefsson picture rajjejosefsson  ·  3Comments

brtnshrdr picture brtnshrdr  ·  3Comments

hareeshav picture hareeshav  ·  3Comments