nypm icon indicating copy to clipboard operation
nypm copied to clipboard

Replace corepack with an integrated solution

Open pi0 opened this issue 9 months ago • 3 comments

Describe the feature

https://github.com/nodejs/TSC/pull/1697#issuecomment-2737093616

Corepack will be phased out of Node.js main distributions. We need to find an alternative solution, either having corepack as (inlined?) dependency (the issue is it is binary only) or making a lightweight package manager version control system similar to corepack that downloads and verifies versions with respect to packageManager field.

Additional information

  • [ ] Would you be willing to help implement this feature?

pi0 avatar Mar 19 '25 17:03 pi0

Not sure if that can be used, but recently I've discovered proto, which does more than corepack, and works with other languages too. Out of the box supports installing and managing node.js, pnpm, npm, yarn, bun and deno. I'm now using it instead of nvm/volta/corepack etc and it's fantastic. It's MIT licensed and written in rust, so I'm not sure if that would fit nypm.

Hebilicious avatar Mar 19 '25 22:03 Hebilicious

What's the issue with globally installing corepack instead of using it from Node.js distribution?

i.e. replace corepack enable with npm install -g corepack && corepack enable

trivikr avatar Mar 20 '25 04:03 trivikr

We want to nypm work as a JS library without additional dependencies need to be installed by users, otherwise corepack and other native version managers are really good solutions (for end-users directly install and using them)

pi0 avatar Mar 20 '25 10:03 pi0