Skip to content

Incorrect Deno install command in pm-install generator #114

@mst-mkt

Description

@mst-mkt

Environment

deno 2.4.2

Reproduction

https://automd.unjs.io/generators/pm-install#output

$ deno i automd
error: automd is missing a prefix. Did you mean `deno install npm:automd`?

$ deno i npm:automd
Add npm:[email protected]
...

Describe the bug

When installing npm packages with Deno, the npm: prefix is required. However, the pm-install generator of automd does not take this into account, resulting in an invalid command.

https://docs.deno.com/runtime/reference/cli/install/#local-installation

Additional context

Support for Deno was added in #74.

I have created the same issue and PR in undocs as well (unjs/undocs#188, unjs/undocs#189).

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions