I'm working in a devcontainer. The project uses yarn 4 and I wrote it in packageManager. I wrote RUN corepack enable in Dockerfile, then I use "postCreateCommand": "yarn" in devcontainer.json. However, I have to press "enter" to allow NodeJS download yarn.
[7802 ms] Start: Run in container: /bin/sh -c yarn
Corepack is about to download https://repo.yarnpkg.com/4.2.1/packages/yarnpkg-cli/bin/yarn.js.
Do you want to continue? [Y/n]
Is there any way to download the package manager automatically?
I'm working in a devcontainer. The project uses yarn 4 and I wrote it in
packageManager
. I wroteRUN corepack enable
in Dockerfile, then I use"postCreateCommand": "yarn"
in devcontainer.json. However, I have to press "enter" to allow NodeJS download yarn.Is there any way to download the package manager automatically?