Skip to content

Instantly share code, notes, and snippets.

@leolanese
Created October 23, 2018 14:03
Show Gist options
  • Save leolanese/92df7a108cc2d73e0bae2732402572ed to your computer and use it in GitHub Desktop.
Save leolanese/92df7a108cc2d73e0bae2732402572ed to your computer and use it in GitHub Desktop.
UPGRADE & DOWNGRAGE angular-cli
// UPGRADE
ng v
sudo npm uninstall -g angular-cli
sudo npm uninstall angular-cli
sudo npm cache verify
sudo npm install -g @angular/cli@latest
sudo npm install @angular/cli@latest
// DOWNGRAGE
// old version (I'm using 6.1.5 to test)
sudo npm uninstall -g angular-cli
sudo npm uninstall angular-cli
sudo npm cache verify
sudo npm install -g @angular/[email protected]
sudo npm install @angular/[email protected]
ng v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment