Cannot bypass "Corepack is about to download" prompt
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.8k
- Forks
- 279
- Avg merge
- 1h 47m
- Merged PRs (30d)
- 2
Description
I'm trying to run corepack inside devcontainers, in a postCreateCommand.
I've upgraded corepack to latest:
npm install --yes --global corepack@latest
Then run:
corepack -v && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable
The output I get:
0.29.3
! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.7.1.tgz
? Do you want to continue? [Y/n]
I've tried setting CI too, but also does not work.
Any clues?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported devcontainer sequence: install corepack@latest, then run corepack -v && COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable, with and without CI. Trace the handling of COREPACK_ENABLE_DOWNLOAD_PROMPT and verify that corepack enable completes without the download prompt when the variable is set.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100