From a146ea2811ce8e25e2c9fc376482012ec1ced690 Mon Sep 17 00:00:00 2001 From: Kelvin Jin Date: Mon, 26 Nov 2018 08:15:21 -0800 Subject: [PATCH] docs: Specify that --dry-run isn't available in older versions of npm publish (#83) Not sure when `--dry-run` was introduced, I assume it was introduced in npm 6 (correct me if I'm wrong). Anyway, hopefully this will prevent future developers from making the mistake of using it in npm 5 (like I did). PR-URL: https://github.com/npm/cli/pull/83 Credit: @kjin Reviewed-By: @zkat --- doc/cli/npm-publish.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/cli/npm-publish.md b/doc/cli/npm-publish.md index a317ff45e1487..c582ad8470c2a 100644 --- a/doc/cli/npm-publish.md +++ b/doc/cli/npm-publish.md @@ -47,8 +47,8 @@ specifying a different default registry or using a `npm-scope(7)` in the name don't include this and you're running from a TTY then you'll be prompted. * `[--dry-run]` - Does everything publish would do except actually publishing to the registry. - Reports the details of what would have been published. + As of `npm@6`, does everything publish would do except actually publishing + to the registry. Reports the details of what would have been published. Fails if the package name and version combination already exists in the specified registry.