question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Description:

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:closed
  • Created a year ago
  • Reactions:9
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
JanVoracekcommented, May 6, 2022

What about enabling corepack explicitly using an input?

- uses: actions/setup-node@v3
  with:
    node-version: 16
    corepack-enable: true
2reactions
Ethan-Arrowoodcommented, May 5, 2022

it makes no sense to setup pnpm before node. 🤔

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found