当我运行npm audit时,我会得到以下结果。
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
我尝试了以下内容
delete pack lock
npm update
npm i
但仍然发生了这种情况。我的npm版本是6.14.11,我的node版本是v14.16.0。
只要我这样做
npm audit --registry=https://registry.npmjs.org
它起作用了
有什么想法为什么会发生这种情况?