We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
首先安装npm-audit-html
npm i -g npm-audit-html
然后输出报告
npm audit --json | npm-audit-html
结果report.html会创建在根目录,打开后如图所示
如果你使用的是淘宝或者华为镜像源,你将无法使用npm audit的功能,需要换回官方的源
npm config set registry https://registry.npmjs.org/
npm-audit Display npm audit vulnerabilities in html format