Skip to content

[DOCS] Missing 'create-' in synopsis of npm-init #5838

@robin-a-meade

Description

@robin-a-meade

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Enhancement, not another kind of Docs Enhancement.

  • This is a CLI Docs Enhancement.

Description of Problem

The synopsis of npm-init says:

npm init <package-spec> (same as `npx <package-spec>`)

It is missing the 'create-' part.
It should say:

npm init <package-spec> (same as `npx create-<package-spec>`)

The problem is present in both 8.x and 9.x.
https://docs.npmjs.com/cli/v8/commands/npm-init
https://docs.npmjs.com/cli/v9/commands/npm-init

Potential Solution

Add the create- part.

Docs URL

https://docs.npmjs.com/cli/v9/commands/npm-init

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issueNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions