Skip to content

Deno command for create- packages is wrong/non-functional #2337

@knotbin

Description

@knotbin

Describe the bug

Using create-example as an example, while others show npm create example or bun create example, Deno shows deno run example which yields error: Module not found "file:///Users/username/example".

The correct command(s) for Deno are:

Deno >2.7 (what should be shown imo):
deno create npm:example

Deno <2.7:
deno init --npm example

I do intend to submit a PR to fix.

Additional context

Deno 2.7 added the deno create command as an alias to the deno init command. However the current command shown in npmx is wrong for both Deno 2.7 and all previous versions before Deno 2.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions