NativeScript / NativeScript/nativescript-cli

Angular Project creation fails with dependency issues on Node 15

未關閉
#5,448 15 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

known limitation
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。