ionic-team / ionic-team/ionic-cli

`ionic info` without having run `npm install`

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

描述

Running `ionic info` on a fresh checkout of a project without running `npm install` first leads to some output like this:

```
λ ionic info

[ERROR] Error loading ionic-angular package.json: Error: Cannot find module 'ionic-angular/package'
[ERROR] Error loading @ionic/app-scripts package.json: Error: Cannot find module '@ionic/app-scripts/package'

Ionic:

ionic (Ionic CLI) : 4.10.3 (C:\Users\Jan\scoop\persist\nvm\nodejs\v10.15.1\node_modules\ionic)
Ionic Framework : not installed
@ionic/app-scripts : not installed

Cordova:

cordova (Cordova CLI) : 9.0.0
Cordova Platforms : not available
Cordova Plugins : not available

System:

ios-deploy : 1.9.2
NodeJS : v10.15.1 (C:\Users\Jan\scoop\apps\nvm\current\nodejs\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
Xcode : Xcode 10.1
```

It might be useful to recognize that this is probably because of a missing `npm install` and educate the user about this.

貢獻指南

開啟貢獻指南

研究方向

Start by reproducing `ionic info` from a fresh checkout before running `npm install`, then trace the `ionic info` command's package-detection and error-reporting path. Done means the command explains that dependencies are missing and points the user toward installing them, without misleading package-loading errors.

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

評估

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

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

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