npm 发布:详细堆栈错误:400 错误请求

cla*_*ark 5 npm http-status-code-400 npm-publish

我使用npm publish返回错误 400 Bad Request,\n我尝试了以下步骤的方法:

\n
    \n
  • delete node_modules
  • \n
  • npm cache clean -f
  • \n
  • npm install
  • \n
  • npm audit
  • \n
\n

但它不起作用。如果您有同样的问题或解决方法\xef\xbc\x8c请告诉我\xef\xbc\x8c谢谢\xef\xbc\x81

\n

我的环境是windows10: v18363.1198 node: v14.15.1 npm: v6.14.9

\n
\n
http fetch PUT 400 https://registry.npmjs.org/byte-download 1400ms\nverbose stack Error: 400 Bad Request - PUT https://registry.npmjs.org/byte-download - Bad Request\nverbose stack     at D:\\Program Files\\nodejs\\node_global\\node_modules\\npm\\node_modules\\npm-registry-fetch\\check-response.js:117:15\nverbose stack     at processTicksAndRejections (internal/process/task_queues.js:93:5)\nverbose statusCode 400\n
Run Code Online (Sandbox Code Playgroud)\n
\n