【问题标题】:404 error while publishing npm package - `npm ERR! 404 Not Found - PUT https://registry.npmjs.org/`发布 npm 包时出现 404 错误 - `npm ERR! 404 未找到 - PUT https://registry.npmjs.org/`
【发布时间】:2021-12-23 17:02:40
【问题描述】:

在 npm publish 上抛出以下错误。以前工作过。

npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/@XYZ - Not found
npm ERR! 404
npm ERR! 404  '@XYZ@5.0.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\HP\AppData\Roaming\npm-cache\_logs\2021-11-11T06_46_42_252Z-debug.log

【问题讨论】:

    标签: node.js npm-publish npm-package


    【解决方案1】:

    运行 npm 登录命令

    E:\XYZ>npm login
    Username: XXXXX
    Password:
    Email: (this IS public) myemail id
    Logged in as XXXXXon https://registry.npmjs.org/.
    

    然后再次发布

    【讨论】:

      猜你喜欢
      • 2020-05-28
      • 2020-08-29
      • 2021-06-12
      • 2021-09-06
      • 1970-01-01
      • 2021-10-07
      • 1970-01-01
      • 2022-10-20
      相关资源
      最近更新 更多