Skip to content

Instantly share code, notes, and snippets.

@MarkTechson
Created August 19, 2020 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkTechson/5cdb59792a9cbefc78c64ed874735732 to your computer and use it in GitHub Desktop.
Save MarkTechson/5cdb59792a9cbefc78c64ed874735732 to your computer and use it in GitHub Desktop.
Installing two different versions of Angular
# Here's one way to set up multiple version of Angular
# on your machine using npm and npx
# This isn't recommended as you should be using the latest version of Angular.
# But edge cases exist :)
#############################################################
# In a folder specifically for an Angular 8 project
#############################################################
npm i @angular/cli@8.3.29
# To run the local version of the CLI
npx ng <command>
#############################################################
# In a folder specifically for the LATEST angular
#############################################################
npm i @angular/cli
# To run the local version of the CLI
npx ng <command>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment