-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release
Description
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:
- In a project folder with package.json and with package-lock.json files, and without node_modules folder
- Run
npm ls --all --json
or
- In a project folder with package.json
- Run
npm install - Delete de node_modules folder
- Run
npm ls --all --json
Environment:
- OS: Windows 10
- Node: 14.15.1
- npm: 7.9.0
or
- OS: Debian 10
- Node: 12.13.0
- npm: 7.9.0
monolithed
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 7.xwork is associated with a specific npm 7 releasework is associated with a specific npm 7 release