简体   繁体   English

发布新的 NPM 包时找不到 E404

[英]E404 Not Found When Publishing New NPM Package

I'm trying to publish a new npm package called nibble-qmk-hid.我正在尝试发布一个名为 nibble-qmk-hid 的新 npm 包。 I've created the project via npm init .我已经通过npm init创建了这个项目。 I've logged into npm via npm login , and then when I try to publish the package via npm publish --access public , I get the following error:我已经通过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:\Users\Alex\AppData\Roaming\npm-cache\_logs\2020-08-23T17_47_29_933Z-debug.log

I've also tried updating npm to the newest version.我也尝试将 npm 更新到最新版本。

Once plausible explanation might be that you need to have an npm account and be signed in. Try this before you publish:一个合理的解释可能是您需要有一个 npm 帐户并登录。在发布之前试试这个:

npm login

Failing that, try the docs如果失败,请尝试文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM