如何查看应用中安装的npm包是否存在漏洞?

How to check if npm packages installed in the app have vulnerabilities?

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

运行 npm audit.

来自文档:

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