gpt4 book ai didi

npm - 如何配置 Nexus Repository Manager 以支持 npm 审核

转载 作者:行者123 更新时间:2023-12-03 02:59:13 25 4
gpt4 key购买 nike

当我尝试在我的 (Angular 7) 应用程序中执行 npmaudit 时,出现以下 npm 错误:

npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://nexus.xxx.com/repository/yyy/) does not support audit requests, or the audit endpoint is temporarily unavailable.

有谁知道如何让 Nexus 支持 npm 审核

最佳答案

如链接的 JIRA ( NEXUS-16954 ) 中所述,应该可以使用 npmaudit --registry=https://registry.npmjs.org 来解决 NXRM。

更新(2020 年 5 月 11 日):从 NXRM 版本 3.23 开始,npm 审核应适用于配置了 Sonatype 防火墙或 IQ 服务器的系统。返回的消息不应再出现错误,但应对此进行解释。一个further JIRA ticket已打开以跟踪此命令在没有此处所述的解决方法的情况下工作的愿望,但截至此更新尚未实现。

关于npm - 如何配置 Nexus Repository Manager 以支持 npm 审核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57427279/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com