E404发布新的NPM包时找不到



我正在尝试发布一个名为cobbe qmk hid的新npm包。我已经通过npm init创建了这个项目。我已经通过npm login登录到npm,然后当我试图通过npm publish --access public发布包时,我得到了以下错误:

npm ERR! code E404
npm ERR! 404 Not Found - PUT https://npm.pkg.github.com/nibble-qmk-hid
npm ERR! 404
npm ERR! 404  'nibble-qmk-hid@1.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:UsersAlexAppDataRoamingnpm-cache_logs2020-08-23T17_47_29_933Z-debug.log

我还尝试过将npm更新到最新版本。

一个合理的解释可能是你需要有一个npm帐户并登录。在发布之前尝试一下:

npm login

如果做不到,请尝试文档

最新更新