npm audit 安全扫描工具

400 阅读1分钟

为了提高 npm 依赖的安全,npm 6.1 后添加了 npm audit 工具,这个工具可以搜索当前项目中使用的依赖是否存在安全问题,并提供了 npm audit fix 工具修复。

npm audit

注:使用 npm audit 应设置为官方镜像