npm is a harsh tool. npm publish is final and there is no going back ever.
If you publish a package with a version number. Then decide to update the package with the same version number. It won't let you. It also give no warning that publishing is final. So never publish anything until you are sure it works.