Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/398.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 您配置的注册表不支持npm audit上的审核请求~_Javascript_Node.js_Npm_Continuous Integration_Npm Audit - Fatal编程技术网

Javascript 您配置的注册表不支持npm audit上的审核请求~

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就会失败,并出现以下错误: $

我有1个依赖项,形式为
“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模块中删除所有内容,然后再次安装,修复了此问题,管道也通过了!