Command line: Dependencies aren't re-indexed after npm update.
See original GitHub issueWhen node_modules
dependency is updated, and the command line utility subsequently run, ExportsStorage#needsUpdate
fails to flag the dependency’s main file as needing to be reindexed, so new exports aren’t found.
The root cause appears to be that needsUpdate
is receiving the wrong mtime
from ModuleFinder
: when ModuleFinder expands files (in expandFiles
), it flags each dependency file with the mtime
of the root package.json, here. It should instead go get the mtime
of the dependency’s main file. (That whole stack is already super asynchronous, so at least it shouldn’t take any external rearchitecting to fix.)
Edit: added link to the root cause.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6
Top Results From Across the Web
Update npm package with fixed dependency from command line
After testing newer versions, I want to update them via command line as were created. Having a list of dependencies with a fixed...
Read more >npm-update
This command will update all the packages listed to the latest version (specified by the tag config), respecting the semver constraints of both...
Read more >How to Update NPM Dependencies - freeCodeCamp
This command will check every installed dependency and compare the current version with the latest version in the npm registry. It is printed ......
Read more >HOW TO: Update all npm packages in your project at once
Is there a quick and easy out-of-the-box way to update all the npm packages in ... The outdated command will list any packages...
Read more >How to efficiently update your npm dependencies - Code-trotter
So the first step is to check if your dependencies are really used. If some of them aren't, well... Just remove them by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I need to clean up a few things before merging, but I agree that this makes things slightly better.
Fixed in 50a9fa (#386)