Ich habe die folgenden Blogs und Dokumentation lasMigration Angular 4.x Angular 5
und keine klaren Informationen darüber, wie aus 4 migrieren .x bis 5.
Die folgenden Befehle wurden versucht
NPM installieren
npm install @angular/{animations,common,compiler,compiler-cli, core,forms,http,platform-browser,platform-browser-dynamic, platform-server,router}@5.0.0
Garn Installation
yarn add @angular/{animations,common,compiler,compiler-cli, core,forms,http,platform-browser,platform-browser-dynamic, platform-server,router}@5.0.0
- Versuchte
die update guide
npm install @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' @angular/[email protected]'^5.0.0' [email protected] [email protected]'^5.5.2' npm install [email protected] --save-exact
Nichts funktionierte gut für mich. Bitte helfen
Wenn Sie sagen "nichts funktioniert", was meinst du? Hatten Sie irgendwelche Fehler? Für den Befehl aus dem Update-Leitfaden, hatte ich die alle Singles Zitate zwischen dem Paket und der Version entfernen: https://github.com/StephenFluin/angular-update-guide/issues/4 – Kevin
Sie könnten auch Ihre package.json bearbeiten Datei und dann 'npm install' ausführen. '" Abhängigkeiten ": { " @ Winkel/Animationen ":" 5.0.0 ", " @ Winkel/common ":" 5.0.0 ", " @ Winkel/Compiler ":" 5.0.0 ", "@ Winkel/core": "5.0.0" "@ Winkel/forms": "5.0.0" "@ Winkel/http": "5.0.0" "@ Winkel/Plattform-Browser" : "5.0.0", "@ Winkel/Plattform-Browser-dynamic": "5.0.0", "@ Winkel/Router": "5.0.0", ' – MatthiasSommer
Es ist durch den Winkel Team eine Upgrade-Anleitung verfügbar [hier] (https://angular-update-guide.firebaseapp.com/). – JayChase