-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[BUG] npm ls --all
does not list dependency tree without node_modules
#3068
Comments
confirmed, easy to reproduce this one. thanks for letting us know! |
Pulling my comment over from my PR, since this is the better place to discuss: @isaacs I've got need to have Additionally, there is the sort-of bug/inconsistency with the output of Would implementing a new flag (i.e |
Current Behavior:
The command
npm ls --all
does not list the dependency tree, without node_modules folder. This command is failing to list the dependency tree with only the package-lock.json file, using npm v7.Expected Behavior:
Using npm v6, the
npm ls
command is working as expected, by listing the dependency tree, with only the package.json and package-lock.json files present, and without node_modules folder.Steps To Reproduce:
npm ls --all --json
or
npm install
npm ls --all --json
Environment:
or
The text was updated successfully, but these errors were encountered: