Angular 6: How to install a previous version of Angular project

Ricky picture Ricky · May 10, 2018 · Viewed 7.4k times · Source

How I can install a previous version of Angular project with the current Angular-cli version (Angular 6).

I found a command but is deprecated:

ng new my_project --ng4

Answer

Basavaraj Bhusani picture Basavaraj Bhusani · May 10, 2018

Since you want to use angular-cli to create new project, you need to install the version of @angular/cli that scaffolds angular 4 project.

Version of @angular/cli which scaffolds the Angular 4 project is 1.4.9.

So, using npm, do npm install @angular/[email protected], then use angular-cli commands.