npm 审核返回 400 错误请求

Lea*_*ner 5 npm npm-install npm-audit

当我运行 npm 审计时我得到

npm audit
npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (http://registry.npmjs.org/) may not support audit requests, or the audit endpoint may be temporarily unavailable.
npm ERR! audit The server said: <html>
npm ERR! audit <head><title>400 Bad Request</title></head>
npm ERR! audit <body>
npm ERR! audit <center><h1>400 Bad Request</h1></center>
npm ERR! audit <hr><center>cloudflare</center>
npm ERR! audit </body>
npm ERR! audit </html>
npm ERR! audit
Run Code Online (Sandbox Code Playgroud)

我尝试了以下方法

delete pack lock
npm update
npm i
Run Code Online (Sandbox Code Playgroud)

但它仍然发生,我的 npm 版本是 6.14.11,我的节点版本是 v14.16.0

一旦我这样做

npm audit --registry=https://registry.npmjs.org 
Run Code Online (Sandbox Code Playgroud)

有用

知道为什么会这样吗?

小智 3

命令行显示提示,从现在开始您应该使用 https

npm audit --audit-level=high --package-lock-only=true --registry=https://registry.npmjs.org