Updating Angular from 4.0 to 4.1

Опубликовано: 07 Август 2026
на канале: Digital Fluency
1,230
18

Updating to the latest minor or patch of Angular is typically just one NPM command:

Linux / Mac:
npm install @angular/{animations,common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router}@latest typescript@latest zone.js@latest --save


Or for Windows the above syntax won't work unless you use PowerShell, so you want to type the whole thing out:
npm install @angular/animations@latest @angular/common@latest @angular/compiler@latest @angular/compiler-cli@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/platform-server@latest @angular/router}@latest typescript@latest zone.js@latest --save