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.
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.
See : https://github.com/angular/angular-cli/issues/8200#issuecomment-339977020
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
@nagarjuna-immadi please follow the below link for the solution:
https://stackoverflow.com/questions/52331625/how-to-create-a-specific-version-of-angular-project-using-cli
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._
Most helpful comment
You can use below command to create angular 4 project using higer versinos of CLI
ng new yourProjectName -ng4