nodejs/corepack

Silent option on corepack

Qwarctick opened this issue · 2 comments

Hello,

I use corepack with yarn in a docker image. But when I run an interactive command with my container, I get the following message:

Corepack is about to download https://repo.yarnpkg.com/4.1.0/packages/yarnpkg-cli/bin/yarn.js.
Do you want to continue? [Y/n]

Is it possible to disable this behavior? I know that if I run the container without TTY, it disables the interactive question, but it's not possible in my context.

This issue can be closed, as COREPACK_ENABLE_DOWNLOAD_PROMPT=0 enables the silent option requested.