I have latest angular cli with version 7.7.3. I need angular 6 project using it. But I can able to create only angular 7 project from it using cli command ng new project_name. Is there any way to force create angular 6 project? Node version : 10.2.1. From git we can get seed but is it possible from latest cli?
The easiest way to do it would be too uninstall angular/cli globally
npm uninstall -g @angular/cli
then reinstall it globally at the version you want so..
npm install -g @angular/[email protected]`
then in your terminal create a new angular project like so
ng new <project-name>
at that point it will build you an angular 6 app, from there you can now safely uninstall the @angular/cli globally and reinstall the latest version like so
npm install -g @angular/cli@latest
The following steps helped me to create angular 6 project from angular cli 7.3.3
Step 1 Create a new folder => mkdir angular6-project
Step 2 Go to that folder => cd angular6-project
Step 3 Check version => ng version so version is > Angular cli: 7.3.3
Step 4 that folder open cmd > npm init -y
Step 5 install angular cli 6 locally using > npm install @angular/cli@6
Step 6 check ng version it's version is > Angular 6.1
Step 7 You delete local pakcage.json file. Angular cli will complain when you try use ng new
Step 8 You can create Angular 6 application > ng new ng6-app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With