NativeScript / NativeScript/nativescript-cli
Angular Project creation fails with dependency issues on Node 15
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1.1k
- Forks
- 204
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 8
Beschreibung
─○ ns create
Error while loading nativescript-cloud is: Default commands should be required before child commands
Let’s create a NativeScript app!
Answer the following questions to help us build the right app for you. (Note: you
can skip this prompt next time using the --template option, or the --ng, --react, --vue, --svelte, --ts, or --js flags.)
? First, what will be the name of your app? *******
? Next, which style of NativeScript project would you like to use: Angular
? Finally, which template would you like to start from: Tabs
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: @nativescript/template-tab-navigation-ng@7.0.5
npm ERR! Found: zone.js@0.11.3
npm ERR! node_modules/zone.js
npm ERR! zone.js@"~0.11.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.10.3" from @angular/core@11.0.4
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"~11.0.0" from the root project
npm ERR! peer @angular/core@"11.0.4" from @angular/animations@11.0.4
npm ERR! node_modules/@angular/animations
npm ERR! @angular/animations@"~11.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
Angular CLI version
Angular CLI: 11.0.4
Node: 15.3.0
OS: darwin x64
Nativescript CLI version
╰─○ ns --version
7.0.11
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere ns create mit dem Angular Tabs-Template auf Node 15.3.0 unter Verwendung von NativeScript CLI 7.0.11 und überprüfe anschließend die Abhängigkeitsauflösung des generierten Projekts. Als erledigt gilt die Erstellung des Angular-Projekts, wenn sie ohne den ERESOLVE-Fehler aufgrund der Peer-Abhängigkeit von zone.js abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, javascript, node.js
- Bereich
- cli, mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100