NativeScript / NativeScript/nativescript-cli
Angular Project creation fails with dependency issues on Node 15
还没有人认领这个 Issue。
- 主要语言
- 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 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