【问题标题】:How to update a published npm package?如何更新已发布的 npm 包?
【发布时间】:2020-09-22 16:10:59
【问题描述】:

我最近加入了一个团队,并更新了一个已在 npm 上发布的 React Native 插件。现在我想在 npm 上更新包。 我试过命令 npm publish 但我收到这些错误:

npm ERR! code E404
npm ERR! 404 Not Found - PUT https://registry.npmjs.org/myplugin - Not found
npm ERR! 404
npm ERR! 404  'myplugin@3.5.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.

我使用浏览器查看链接https://registry.npmjs.org/myplugin,它工作正常。 我已经在 git 上推送了最新的更新版本,所以在 GitHub 上一切正常。 我有一个 npm 帐户,并且我是组织帐户中的管理员。任何关于如何在 npm 上更新包的指导都将非常感激。

【问题讨论】:

  • 这是npm install myplugin@3.5.0 而非npm publish 的输出。

标签: npm


【解决方案1】:

我刚刚在 npm 中登录了我的帐户,这解决了我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-09
    • 2021-07-20
    • 2022-01-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多