Skip to content

Backport Corepack 0.17.0 to Node.js 18 LTS #46937

@denexapp

Description

@denexapp

What is the problem this feature will solve?

The latest LTS version of Node.js uses Corepack v0.15.3 (link). This version of corepack has an issue that prevents corepack to use custom registries to download package managers.

I hit this issue. I can not access default npm registry because it's blocked by corporate firewall, and I can not use custom registry because of the bug of corepack

What is the feature you are proposing to solve the problem?

This issue was fixed in the latest versions of Corepack in this PR.

Merge requests were created to use the latest 0.17.0 version of Corepack for Node.js v19, v16 and v14.

But there's no merge request for Node.js v18.

I think Corepack v0.17.0 should be backported to Node.js v18 as well.

Tagging @aduh95 as the author of these PR's, what do you think? I can make a similar PR if it's needed.

What alternatives have you considered?

The alternative is to update Corepack to the latest version after the installation of Node.js v18 manually using npm install -g corepack.

While this workaround solves the problem, I think it's better to address this problem at the level of Node.js itself, so users won't face the problem at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions