Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个私有的 npm 注册表,我们使用的所有 npm 包都在其中托管。由于“npm audit”不像对 npm 注册表那样工作,我们在执行“npm audit”之前将下面突出显示的 url 从我们的私有注册表替换为 npm。
现在,当我执行 'ng build --prod' 时,它会捆绑更新的 node_modules(在 npm 审计之后),这样我的构建文件中就有了经过审计的 npm 包。
谢谢!