首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置的注册表不支持npm审计上的审计请求。

配置的注册表不支持npm审计上的审计请求。
EN

Stack Overflow用户
提问于 2019-08-17 13:56:26
回答 1查看 5.1K关注 0票数 2

我有一个"protobufjs": "git+https://github.com/danieldanielecki/protobufjs-angularfire.git#master"形式的依赖项,即使用npm install --save https://github.com/danieldanielecki/protobufjs-angularfire#master安装。有什么方法可以将其包括在npm audit中吗?每当我试图对包进行审计时(我需要以这种方式获取包),我的npm audit就会失败,并出现以下错误:

代码语言:javascript
复制
$ 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而言,这真的很烦人,因为那时我的管道失败了。

这个问题在 keeps returning "Your configured registry (https://registry.npmjs.org/) does not support audit requests.". How do I make it work again?中是不存在的,在那里(或其他地方)找不到答案。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-08-17 18:29:48

感谢@broofa的快速测试和一个新的想法,解决方案:

  1. rm -rf node_modules
  2. npm install
  3. npm install https://github.com/danieldanielecki/protobufjs-angularfire#master
  4. npm audit又开始工作了!

node_modules中出现了一些不兼容的问题,我也删除了npm-shrinkwrap.json并生成了一个新的。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57536939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档