Error
⠸ Generating SBOMUnable to parse /Users/eduardoroth/Developer/eol-scans/package-lock.json without legacy peer dependencies. Retrying ...
Unable to parse /Users/eduardoroth/Developer/eol-scans/package-lock.json in legacy and non-legacy mode. The resulting SBOM would be incomplete.
Steps to reproduce
- Create a
package.json and add as devDependencies (or regular dependencies) the following packages:
"devDependencies": {
"lerna": "2.0.0",
"lodash": "4.17.21"
},
- Run
npm i to have the package-lock.json generated
- Run
@npx @herodevs/cli@beta
Expected behavior
Two ways of solving this, if Unable to parse error is hit then:
- Re-run with
--legacy-peer-deps flag automatically
- Terminate the process and show a message to run the cli with a
legacy-deps flag (-l or something like that)