我有一个"protobufjs": "git+https://github.com/danieldanielecki/protobufjs-angularfire.git#master"形式的依赖项,即使用npm install --save https://github.com/danieldanielecki/protobufjs-angularfire#master安装。有什么方法可以将其包括在npm audit中吗?每当我试图对包进行审计时(我需要以这种方式获取包),我的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而言,这真的很烦人,因为那时我的管道失败了。
这个问题在 keeps returning "Your configured registry (https://registry.npmjs.org/) does not support audit requests.". How do I make it work again?中是不存在的,在那里(或其他地方)找不到答案。
发布于 2019-08-17 18:29:48
感谢@broofa的快速测试和一个新的想法,解决方案:
rm -rf node_modulesnpm installnpm install https://github.com/danieldanielecki/protobufjs-angularfire#masternpm audit又开始工作了!在node_modules中出现了一些不兼容的问题,我也删除了npm-shrinkwrap.json并生成了一个新的。
https://stackoverflow.com/questions/57536939
复制相似问题