Skip to content

Instantly share code, notes, and snippets.

@gparlakov
Last active April 24, 2023 13:12
Show Gist options
  • Save gparlakov/1d015d3d2335dc8dbeccb9ede0530cdf to your computer and use it in GitHub Desktop.
Save gparlakov/1d015d3d2335dc8dbeccb9ede0530cdf to your computer and use it in GitHub Desktop.
Add angular apps of a specific version
# these versions are current as of May 18th 2021
# info from https://www.npmjs.com/package/@angular/cli -> Versions
#Angular 2: looks like this is the last RC version before switching to angular 4
npx -p @angular/[email protected] ng new angular2app
#Angular 4: the last CLI version before Angular 5
npx -p @angular/[email protected] ng new angular4app
#Angular 5: the last CLI version before Angular 6
npx -p @angular/[email protected] ng new angular5app
#Angular 6: CLI version 6 (lts)
npx -p @angular/[email protected] ng new angular6app
# Angular 7:CLI version 7 (lts)
npx -p @angular/[email protected] ng new angular7app
#Angular 8: CLI version 8 (lts)
npx -p @angular/[email protected] ng new angular8app
#Angular 9: CLI version 9 (lts)
npx -p @angular/[email protected] ng new angular9App
#Angular 10: CLI version 10 (lts)
npx -p @angular/[email protected] ng new angular10App
#Angular 11: CLI version 11 (lts)
npx -p @angular/[email protected] ng new angular11App
#Angular 12: current
npx -p @angular/[email protected] ng new angular12App
@constalexander
Copy link

Awesome, starred thanks. I had to uninstall Angular CLI globally to get it to work, but I'm ok with that.

@gparlakov
Copy link
Author

gparlakov commented Sep 23, 2021 via email

@akshanshkishore
Copy link

Please edit line #32
npx -p @angular/[email protected] ng new angular12App

@gparlakov
Copy link
Author

@akshanshkishore right! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment