Check license script fails in npm version 7.6.0 #29524
Labels
[Status] In Progress
Tracking issues with work in progress
[Tool] WP Scripts
/packages/scripts
[Type] Bug
An existing feature does not function as intended
[Type] Build Tooling
Issues or PRs related to build tooling
Description
Running the command
npm run check-licenses
in npm version7.6.0
fails with the following error:The error looks like it's related to the command
npm ls
that is used for fetching all the dependencies data.I tried to run
npm ls --json --all
to check the output of that command and it's giving a lot of error like the following ones:Step-by-step reproduction instructions
npm install -g npm@7.6.0
<7
condition from the npm engine section ofpackage.json
file (example)npm run check-licenses
Expected behaviour
Running the script should succeed.
Actual behaviour
Running the script produces an error.
Screenshots or screen recording (optional)
N/A
Code snippet (optional)
WordPress information
Device information
The text was updated successfully, but these errors were encountered: