npm - npm 审核返回 400 错误请求
问题描述
当我运行 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,我的节点版本是 v14.16.0
一旦我这样做
npm audit --registry=https://registry.npmjs.org
有用
知道为什么会这样吗?
解决方案
推荐阅读
- docker - 如何清理 linux 机器上的 docker 容器和镜像
- javascript - 当按下注册按钮时,注册表会重新呈现一瞬间
- jquery - 按钮 css 禁用按钮
- javascript - 如何将参数从函数传递到引导模式再到操作方法
- c++ - 这个返回另一个临时对象的临时对象能活多久?
- arduino - 带有 Arduino 的电机
- html - 使用 HTML 和 VB.NET 的 Web 应用程序上的输入字符串格式不正确
- python - 如何在 CMD 中进入文件夹并从中退出?
- javascript - 如何在Javascript中将lambda作为参数传递?
- c# - C# Windows 窗体 - 工具提示延迟不起作用