0

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
4

1 回答 1

0

运行 npm 登录命令

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

然后再次发布

于 2021-11-11T07:11:29.693 回答