NativeScript / NativeScript/nativescript-cli

version of dependency doesn't update in node_modules if you change it in package.json

未關閉
#4,924 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

  1. tns create app --js
  2. set nativescript-dev-webpack to be 1.0.1 in package.json and run app
  3. You will see that the version in node_modules/nativescript-dev-webpack/package.json is 1.0.2

Expected behavior
version should update

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

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

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