Install Node.js#

Download at https://nodejs.org/en/ and install all

Upgrade npm on Windows#

1. run PowerShell as administrator

Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force
npm-windows-upgrade --npm-version latest
See npm-windows-upgrade -h

Upgrade Angular CLI (ng)#

npm uninstall -g angular-cli
npm install -g @angular/cli@latest

Project Update#

npm uninstall @angular-devkit/build-angular
npm install @angular-devkit/build-angular
ng update --all --force
npm install @angular/cli@latest

Get exact version

npm install typescript@">=3.4.0 <3.6.0" 
npm install typescript@3.5.3 --save-dev --save-exact

To update CLI to a version > 6 you need to transform .angular-cli.json into angular.json. Otherwise you get error "Local workspace file ('angular.json') could not be found".

ng update @angular/cli --migrate-only --from=1.7.2