ionic-team / ionic-team/ionic-cli

bug: `--no-deps` option does not work

未關閉
#4,814 1 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
triage
主要語言
TypeScript
星號
2k
分支
681
PR 合併指標
30 天內沒有已合併 PR

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

- [ ] v4.x
- [ ] v5.x
- [X] v6.x

### Current Behavior

on running the command `ionic start "product-hunt-clone" blank --type=react --no-deps`, the ionic cli still runs the `npm i` command, even though the `--no-deps` options is enabled.

### Expected Behavior

`npm i` command should not run, and dependencies should not be installed for a project

### Steps to Reproduce

run the command `ionic start "product-hunt-clone" blank --type=react --no-deps` to create a blank starter project

### Code Reproduction URL

_No response_

### Ionic Info

Ionic:

Ionic CLI : 6.18.1

Utility:

cordova-res : not installed globally
native-run : not installed globally

System:

NodeJS : v16.14.0
npm : 8.3.1
OS : Linux 5.15

### Additional Information

_No response_

貢獻指南

開啟貢獻指南

研究方向

首先執行 `ionic start "product-hunt-clone" blank --type=react --no-deps`,並追蹤 Ionic CLI 的 start 流程,其中會安裝專案相依套件。完成標準是:提供 `--no-deps` 時,命令完成執行,且不會執行 `npm i` 或安裝相依套件。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
node.js, typescript
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

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

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