- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.8k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Running npm ls --long --json does not show the license field in dependencies, if npmv7 was used to install the packages.
npm ls --long --json does show the license field in dependencies if npmv6 was used to install the packages, even when npmv7 is used to run the ls command.
Expected Behavior
Expect to see the license field in the output for dependencies when npm ls --long --json is run.
Steps To Reproduce
- Run npm iwith npm v7
- Run npm ls --long --jsonwith npm v7
- Observe licenses field is missing for dependencies.
To observe better behaviour,
- Run npm iwith npm v6
- Run npm ls --long --jsonwith npm v7 (or v6)
- Observe licenses field is present for dependencies.
Environment
- OS: macos
- Node: v16.5.0
- npm: 7.20.5
aidansteele, irico3 and ganta
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 2secondary priority issuesecondary priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release