Enable Corepack
See original GitHub issueDescription:
Related to this issue and comment https://github.com/actions/setup-node/issues/182#issuecomment-1086296667, I’d like to see support for enabling corepack without having to have a separate run
step to do so.
Justification:
This would reduce overall runtime of actions, as no separate steps are required to enable corepack nor to install package managers, which is a net benefit to users in both regards.
Are you willing to submit a PR?
Surely
Issue Analytics
- State:
- Created a year ago
- Reactions:9
- Comments:16 (6 by maintainers)
Top Results From Across the Web
Corepack | Node.js v19.3.0 Documentation
Corepack is an experimental tool to help with managing versions of your package managers. It exposes binary proxies for each supported package manager...
Read more >nodejs/corepack: Zero-runtime-dependency package ... - GitHub
Corepack is a zero-runtime-dependency Node.js script that acts as a bridge between Node.js projects ... Run corepack enable to install the required shims....
Read more >Corepack: the Node.js' manager of package managers
You can enable Corepack to handle pnpm and automatically install it when is used for the first time: corepack enable.
Read more >nodejs will not enable corepack: operation not permitted
I have installed nodejs and i am trying to enable corepack with corepack enable but it gives me this error on windows:
Read more >Installation | Yarn - Package Manager
The preferred way to manage Yarn is through Corepack, a new binary shipped with all Node.js ... corepack enable ... corepack prepare yarn@stable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What about enabling corepack explicitly using an input?
This is necessary step in order to get caching to work. This action executes pnpm to get the path of the cache during the node set up action; if pnpm or yarn are not installed then the operation will fail. One could argue this action should start to support pnpm automatically like I believe it does with yarn