### Description When running the module `node-npmaudit` on windows, an error is output as follows `node-npmaudit returned an error! spawn npm ENOENT` ### Steps to Reproduce 1. .hawkeyerc contains "node-npmaudit" module 2. Run `npm run hawkeye scan --target .` **Expected behavior:** No errors, npm audit successfully run **Actual behavior:** Error output ### Version npm 6.9.0, 6.12.0 or 6.13.0 "@hawkeyesec/scanner-cli": "^1.7.1" ### Additional Information Changing line 29 from `'npm audit --json'` to `'npm.cmd audit --json'` in `@hawkeyesec\scanner-cli\lib\modules\node-npmaudit\index.js` removes the issue. https://stackoverflow.com/questions/43230346/error-spawn-npm-enoent/43285131
Description
When running the module
node-npmauditon windows, an error is output as followsnode-npmaudit returned an error! spawn npm ENOENTSteps to Reproduce
npm run hawkeye scan --target .Expected behavior:
No errors, npm audit successfully run
Actual behavior:
Error output
Version
npm 6.9.0, 6.12.0 or 6.13.0
"@hawkeyesec/scanner-cli": "^1.7.1"
Additional Information
Changing line 29 from
'npm audit --json'to'npm.cmd audit --json'in@hawkeyesec\scanner-cli\lib\modules\node-npmaudit\index.jsremoves the issue.https://stackoverflow.com/questions/43230346/error-spawn-npm-enoent/43285131