Skip to content

Instantly share code, notes, and snippets.

@anhkind
Last active April 18, 2018 10:26
Show Gist options
  • Save anhkind/1ac0235abcfdcd81945835b695b4127b to your computer and use it in GitHub Desktop.
Save anhkind/1ac0235abcfdcd81945835b695b4127b to your computer and use it in GitHub Desktop.
Upgrade Angular
# from https://github.com/angular/angular-cli/issues/4391#issuecomment-277199786
# Fix global angular/cli
npm uninstall -g angular-cli
npm cache clean --force
npm install -g @angular/cli@latest
# Fix local angular/cli and angular
rm -rf node_modules dist
npm uninstall --save-dev angular-cli
npm uninstall --save-dev @angular/cli
npm install --save-dev @angular/cli@latest
npm install
ng update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment