For my understanding the Node.js Analyzer in conjunction with the Node Audit Analyzer inspects the package-lock.json. And the package-lock.json always includes the devDependencies.
The dependency-check-report.html reflects this and is including all dependencies.
npm install --productionNow my question: Is there a optional parameter/possibility to avoid the inclusion of the devDependencies in the report ? The devDependencies in the package-lock.json shows "dev": true,, the production dependencies have no "dev" entry.
At the moment no. Everything in the package-lock.json is analyzed.
With npm release v6.10.0 it is possible to exclude dev dependencies from npm audit. Maybe it can be included in the dependency check.
For more information see the https://github.com/npm/cli/releases/tag/v6.10.0 -> https://github.com/npm/cli/pull/202
Most helpful comment
With npm release v6.10.0 it is possible to exclude dev dependencies from npm audit. Maybe it can be included in the dependency check.
For more information see the https://github.com/npm/cli/releases/tag/v6.10.0 -> https://github.com/npm/cli/pull/202