-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Implement equivalent of Python's PIP's REQUESTED #6463
Comments
Typically that's not something one interrogates; you just run What's your use case? |
I have a |
|
I don't have a package.json file, I only have a Would this be difficult to add? It would be helpful for the same reasons outlined here pypa/pip#7811 |
Yes, I suspect that the nondeterminism - especially based on install time and available versions - of node_modules means that it is an impossible thing to do correctly, which means it's better not attempted. |
Does |
How hard is it to parse the command line the user provides and use that to later create a |
I suppose that's something it could do moving forward - but it'd then only work for a node_modules that was fully installed using an npm version that had that feature. In that case, I'd suggest filing an RRFC issue on https://github.com/npm/rfcs, since the CLI repo doesn't take feature requests. |
RRFC link: npm/rfcs#693 |
When working with Python, it's possible to determine which package was originally installed by the user by checking for the presence of the
REQUESTED
file.For instance:
so then one can determine that the
requests
was installed explicitly, whereascharset_normalizer
wasn't.How can one do the same with npm ?
The text was updated successfully, but these errors were encountered: