Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stale packages not detected if 'parent' node_modules already has the updated versions #512

Open
samkelleher opened this issue Mar 8, 2023 · 0 comments

Comments

@samkelleher
Copy link

samkelleher commented Mar 8, 2023

Consider this directory structure:

node_modules/dep@2
my-project/node_modules/dep@1
my-project/package.json (with dep@1 listed)

I run npm-check from within my-project, it should identify dep to be one version old and prompt to update from 1 to 2.

It doesn't.

At the very least it should prompt to update the package.json which is asking for version 1. But for some reason, because npm-check finds the latest version somewhere within the parents directory structure, it doesn't prompt to make any changes.

npm-check returns

 ⁉️  MISMATCH  Installed version does not match package.json.

but npm-check in interactive mode, displays nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant