Replace corepack with an integrated solution
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?
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.
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
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)