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
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.