rlidwka / sinopia

Private npm repository server
5.51k stars 656 forks source link

How to update npm packages. #292

Open HelloYie opened 9 years ago

HelloYie commented 9 years ago

After publish some pakages to server, how to update it ?

npm publish
then update ?

Now I must remove the old package , and republish...

curtisr7 commented 9 years ago

Did you try to increment the package version and republish?

HelloYie commented 9 years ago
  npm publish --tag 1.0.x ? 

It seems that not work. but I can do like this:

npm unpublish --force
npm pulish
Amir-61 commented 9 years ago

@HelloYie No by that @curtisr7 means when you do npm init give it another version and npm publish again :-)

rbecheras commented 9 years ago

I confirm. You have to git tag, npm bump the package version accordingly, and then publish again.

 $ nano package.json

... version: x.y.z

$ git tag vx.y.z
$ git push <repo>
$ npm publish