Skip to content

Instantly share code, notes, and snippets.

@quangnd
Last active August 10, 2018 03:46
Show Gist options
  • Save quangnd/1cba6f8d2aff72231fec9bc7bf7fdcdd to your computer and use it in GitHub Desktop.
Save quangnd/1cba6f8d2aff72231fec9bc7bf7fdcdd to your computer and use it in GitHub Desktop.
How to install the latest angular-cli?
You can run these two snippets to upgrade from angular-cli to the new package @angular/cli.
```
npm uninstall -g angular-cli
npm cache clean
npm install -g @angular/cli@latest
```
```
rm -rf node_modules dist
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install
ng update
```
From: https://github.com/angular/angular-cli/issues/4391#issuecomment-277199786
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment