NativeScript / NativeScript/nativescript-cli
Detect when the CLI is installed as a dependency and show an user-friendly error
未關閉
還沒有人認領這個 Issue。
feature
needs better error msg
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
Is your feature request related to a problem? Please describe.
It's easy to forget --global or --save-dev when installing/updating the NativeScript CLI. This leads to a strange fail in the native build of the app.
Describe the solution you'd like
The CLI could detect such cases and show an error describing the problematic state and possible solutions.
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先追蹤 CLI 安裝和原生建置的進入點,以找出相依性安裝與全域安裝或開發安裝有何不同。在檢查現有的 CLI 測試結構之前,定義可偵測的問題狀態和面向使用者的錯誤;完成的條件是 CLI 回報該狀態和建議的安裝解決方案,而不是稍後在原生建置期間才失敗。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100