NativeScript / NativeScript/nativescript-cli
version of dependency doesn't update in node_modules if you change it in package.json
未關閉
還沒有人認領這個 Issue。
bug
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
描述
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 6.0.2
Describe the bug
Change a version of a dependency in a package.json and run the project. You will see that the version doesn't update in node_modules.
To Reproduce
tns create app --js- set
nativescript-dev-webpackto be 1.0.1 inpackage.jsonand run app - You will see that the version in
node_modules/nativescript-dev-webpack/package.jsonis 1.0.2
Expected behavior
version should update
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先使用 tns create app --js 重現問題,然後在執行應用程式後,將 package.json 中的相依性版本與 node_modules/nativescript-dev-webpack/package.json 進行比較。追蹤 CLI 的相依性安裝或專案執行進入點;完成的標準是,變更要求的版本會更新已安裝的相依性,而不是繼續保留 1.0.2。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, nodejs
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100