Npm bumped version number but npmjs doesn't update

时间:2022-08-24 07:26:13

Publish my first npm package earlier today. Set it to v0.0.0. I've fixed a bug and done:

今天早些时候发布我的第一个npm包。将其设置为v0.0.0。我修复了一个错误并完成了:

npm version patch -m "Bumped to version %s"

It has now been set to v0.0.1

它现在已设置为v0.0.1

I pushed to github (with tags) but it's not updated the npm package version on npmjs.org.

我推送到github(带标签),但它没有更新npmjs.org上的npm包版本。

Do I need to do something else? Will it update itself?

我还需要做别的吗?它会更新吗?

1 个解决方案

#1


1  

You will have to manually publish the new version I'm afraid:

您将不得不手动发布我担心的新版本:

  $ npm publish

npm-version doesn't seems to push into the repository: https://npmjs.org/doc/cli/npm-version.html

npm-version似乎没有进入存储库:https://npmjs.org/doc/cli/npm-version.html

If you want to automate both process though, you can look at a specific Grunt task: https://github.com/geddski/grunt-release

如果你想自动化这两个过程,你可以查看一个特定的Grunt任务:https://github.com/geddski/grunt-release

  $ grunt release

Edit:

Oh in fact, there is a standalone release plugin that works with npm (No need for Grunt if you don't want to then): https://npmjs.org/package/npm-release

哦,事实上,有一个独立的发布插件可以与npm一起使用(如果你不想那么就不需要Grunt):https://npmjs.org/package/npm-release

#1


1  

You will have to manually publish the new version I'm afraid:

您将不得不手动发布我担心的新版本:

  $ npm publish

npm-version doesn't seems to push into the repository: https://npmjs.org/doc/cli/npm-version.html

npm-version似乎没有进入存储库:https://npmjs.org/doc/cli/npm-version.html

If you want to automate both process though, you can look at a specific Grunt task: https://github.com/geddski/grunt-release

如果你想自动化这两个过程,你可以查看一个特定的Grunt任务:https://github.com/geddski/grunt-release

  $ grunt release

Edit:

Oh in fact, there is a standalone release plugin that works with npm (No need for Grunt if you don't want to then): https://npmjs.org/package/npm-release

哦,事实上,有一个独立的发布插件可以与npm一起使用(如果你不想那么就不需要Grunt):https://npmjs.org/package/npm-release