如何检查应用程序中安装的 npm 包是否存在漏洞? [英] How to check if npm packages installed in the app have vulnerabilities?

查看:47
本文介绍了如何检查应用程序中安装的 npm 包是否存在漏洞?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 React Js 应用程序,我想知道安装的 npm 包和第三方库是否存在漏洞.谢谢.

I have a React Js app and I will like to know if the npm packages installed and third-party libraries have vulnerabilities. Thank you.

推荐答案

运行 npm audit.

来自文档:

扫描您的项目是否存在漏洞,并自动为易受攻击的依赖项安装任何兼容更新

Scan your project for vulnerabilities and automatically install any compatible updates to vulnerable dependencies

这篇关于如何检查应用程序中安装的 npm 包是否存在漏洞?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆