-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Closes: #3821
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,15 @@ strictly additive, so it will keep any fields and values that were already | |
set. You can also use `-y`/`--yes` to skip the questionnaire altogether. If | ||
you pass `--scope`, it will create a scoped package. | ||
|
||
*Note:* if a user already has the `create-<initializer>` package | ||
globally installed, that will be what `npm init` uses. If you want npm | ||
to use the latest version, or another specific version you must specify | ||
it: | ||
|
||
* `npm init foo@latest` # fetches and runs the latest `create-foo` from | ||
the registry | ||
* `npm init [email protected]` # runs `[email protected]` specifically | ||
|
||
#### Forwarding additional options | ||
|
||
Any additional options will be passed directly to the command, so `npm init | ||
|