Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-07-28 00:04:53 +0300
committerGitHub <noreply@github.com>2022-07-28 00:04:53 +0300
commit0e3660eb39bd12a25517d745701bf841811b4623 (patch)
tree39d2de07a468e4a7a9771bc50ae29a605862f01f /docs
parent77bf2e10236b72613101ac21d151f5974240f3aa (diff)
fix(init): allow for spec on scope-only arg (#5206)
Diffstat (limited to 'docs')
-rw-r--r--docs/content/commands/npm-init.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/content/commands/npm-init.md b/docs/content/commands/npm-init.md
index cd0be4643..f3124a776 100644
--- a/docs/content/commands/npm-init.md
+++ b/docs/content/commands/npm-init.md
@@ -38,6 +38,8 @@ follows:
* `npm init foo` -> `npm exec create-foo`
* `npm init @usr/foo` -> `npm exec @usr/create-foo`
* `npm init @usr` -> `npm exec @usr/create`
+* `npm init @usr@2.0.0` -> `npm exec @usr/create@2.0.0`
+* `npm init @usr/foo@2.0.0` -> `npm exec @usr/create-foo@2.0.0`
If the initializer is omitted (by just calling `npm init`), init will fall
back to legacy init behavior. It will ask you a bunch of questions, and