NativeScript / NativeScript/nativescript-cli
version of dependency doesn't update in node_modules if you change it in package.json
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with tns create app --js, then compare the dependency version in package.json with node_modules/nativescript-dev-webpack/package.json after running the app. Trace the CLI's dependency-install or project-run entry point; done means changing the requested version updates the installed dependency rather than retaining 1.0.2.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100