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