npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

publish --dry-run result in a failure if version already published

It would be great when running npm publish --dry-run it would fail if that version was already published.

Related: Failure to publish scoped package does not fail dry run

(There is good detail on the existing user experience in the linked topic from @danderson00 )