Search code examples
node.jsnpmsemantic-versioning

Is there a workaround for `npm publish -f`


Now that npm publish -f is deprecated, is there a workaround or a package that makes it possible to overwrite a target version after it's been published?

I know about semver; I still want npm publish -f.


Solution

  • someone said this on npm's github issue:

    @nmrony You cannot overwrite previously-published packages anymore (since February 2014, if I recall correctly).

    https://github.com/npm/npm/issues/8305#issuecomment-236412989