NativeScript / NativeScript/nativescript-cli
Angular Project creation fails with dependency issues on Node 15
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
─○ 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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Node 15.3.0 上で NativeScript CLI 7.0.11 を使用し、Angular Tabs テンプレートで ns create を再現してから、生成されたプロジェクトの依存関係の解決を調査します。Angular プロジェクトの作成が zone.js の peer dependency による ERESOLVE エラーなしで完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, javascript, node.js
- 領域
- cli, mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100