Skip to content

Prepare the "Last" version? #72

@hyrious

Description

@hyrious

The prepare command will choose "Known Good Releases" when it is not specified with a version range. Generally npm@7.20.1, pnpm@6.11.0 and yarn@1.22.15. I'm wondering if it can just choose the last version of them. Because Node.js 16 is installed with npm@8, it is quite surprising that corepack enable gives me npm@7.

Currently corepack prepare requires a full version to work, i.e. x.y.z. When I want to upgrade npm to 8, I have to ask npm once to get the correct version (npm view npm or npm dist-tag ls npm, and copy the latest field).

So I hope corepack would have corepack prepare --latest to just install the latest version, or maybe corepack upgrade --interactive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions