0

So for example, I made a package and published it with version 1.0.0.

But then, I decided that I want to change the version of my package to 0.1.0and add a default tag latest.

How can I do that?

G lander
  • 68
  • 2
  • 10

1 Answers1

1

In the package.json, you need to update the version and then publish the package by using the attribute --tag=latest. So the syntaxt will become: npm publish --tag=latest.

Sunil Chaudhary
  • 4,481
  • 3
  • 22
  • 41