This repository was archived by the owner on Jun 9, 2022. It is now read-only.
  
  
  
  
  
Description
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
- .hawkeyerc contains "node-npmaudit" module
- 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