npm-audit-ci
npm-audit-ci copied to clipboard
exec error: Error: Command failed: npm audit --json
I'm getting the following error:
$ npm-audit-ci
exec error: Error: Command failed: npm audit --json
I'm running Node.js v12.12.0
on macOs 10.15.1
with npm 6.12.1
.
@mastertinner I tried to reproduce this issue and seems like it works fine for me. Do you have any extra details which I can use to reproduce this?
I'm getting the error in this project of mine: https://github.com/mastertinner/shuttrstockr
You're right, I just tried it in another project and there it worked fine. However, the repo where it doesn't work should be a pretty standard npm
project where the normal npm audit
command works fine so I'm not sure why it doesn't work there...
I got the same error, but I also have good news: with the newer versions of npm it is not anymore necessary to use this package, just use npm audit --audit-level=moderate
Update : The bug seems to appear when the global audit-level is higher than the one passed to npm-audit-ci
Way to reproduce :
npm config set audit-level low
npm-audit-ci -h