You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I run license-compliance under a project with pnpm it throws Package "x" was not found. Confirm that all modules are installed. many times even if the package is correctly installed.
To Reproduce
Steps to reproduce the behavior:
# setup
npm init -y
pnpm add axios
pnpm add -D license-compliance
# running the script
pnpm license-compliance
# I get the following output:# Package "follow-redirects" was not found. Confirm that all modules are installed.# Package "proxy-from-env" was not found. Confirm that all modules are installed.# Package "form-data" was not found. Confirm that all modules are installed.# Package "chalk" was not found. Confirm that all modules are installed.# Package "commander" was not found. Confirm that all modules are installed.# Package "cosmiconfig" was not found. Confirm that all modules are installed.# Package "debug" was not found. Confirm that all modules are installed.# Package "joi" was not found. Confirm that all modules are installed.# Package "spdx-expression-parse" was not found. Confirm that all modules are installed.# Package "spdx-satisfies" was not found. Confirm that all modules are installed.# Package "xmlbuilder" was not found. Confirm that all modules are installed.# Package "tslib" was not found. Confirm that all modules are installed.# Licenses# └─ MIT: 2
Expected behavior
Doing the same with npm or yarn it perfectly works with the following result:
@marcomontalbano Thank you for reporting this. I have confirmed that license-compliance is not compatible with pnpm; the dependency tree must be traversed with a different approach.
While this gets addressed, please note that you can analyze the top level (direct) dependencies:
Describe the bug
When I run
license-compliance
under a project withpnpm
it throws Package "x" was not found. Confirm that all modules are installed. many times even if the package is correctly installed.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Doing the same with
npm
oryarn
it perfectly works with the following result:Screenshots
Please complete the following information):
MacOS Ventura 13.0
>= v16.17.0
Additional context
Additional information about
node_modules
structure on pnpm: https://pnpm.io/symlinked-node-modules-structureThe text was updated successfully, but these errors were encountered: