Javascript 您配置的注册表不支持npm audit上的审核请求~
我有1个依赖项,形式为Javascript 您配置的注册表不支持npm audit上的审核请求~,javascript,node.js,npm,continuous-integration,npm-audit,Javascript,Node.js,Npm,Continuous Integration,Npm Audit,我有1个依赖项,形式为“protobufjs”:“git”+https://github.com/danieldanielecki/protobufjs-angularfire.git#master“,即使用npm安装-保存https://github.com/danieldanielecki/protobufjs-angularfire#master。是否有任何方法将此纳入npm审核中?每当我试图审核程序包时,我需要以这种方式获取该程序包,我的npm audit就会失败,并出现以下错误: $
“protobufjs”:“git”+https://github.com/danieldanielecki/protobufjs-angularfire.git#master“
,即使用npm安装-保存https://github.com/danieldanielecki/protobufjs-angularfire#master
。是否有任何方法将此纳入npm审核中?每当我试图审核程序包时,我需要以这种方式获取该程序包,我的npm audit
就会失败,并出现以下错误:
$ npm audit
npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests, or the audit endpoint is temporarily unavailable.
这对于CI来说真的很烦人,因为我的管道失败了
此问题尚未解决,在那里(或其他任何地方)未找到答案。感谢@broofa提供的快速测试和新想法,解决方案:
rm-rf节点模块
npm安装
npm安装https://github.com/danieldanielecki/protobufjs-angularfire#master
npm审计
又起作用了李>
node\u modules
中出现了一些不兼容的问题,我也删除了npm shrinkwrap.json
,并生成了一个新的。这对我很有效。创建一个干净的目录,执行npminit
创建一个package.json,然后执行npm安装https://github.com/danieldanielecki/protobufjs-angularfire#master
,然后npm审计
,它会生成一份干净的报告。这是npm 6.9.0的一部分。可能是您的.npmrc
配置中的某些东西导致了这种情况?@broofa感谢您的新想法!从node\u模块中删除所有内容,然后再次安装,修复了此问题,管道也通过了!