Skip to content

Instantly share code, notes, and snippets.

@roman-bgonz
Forked from gparlakov/add.sh
Created February 1, 2022 18:49
Show Gist options
  • Save roman-bgonz/cd8289ef06cb06924a0f542851760b7f to your computer and use it in GitHub Desktop.
Save roman-bgonz/cd8289ef06cb06924a0f542851760b7f 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 angular11App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment