1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Docker】Corepackのダウンロードプロンプトが表示されないようにする方法

Posted at

Corepackのダウンロードプロンプト

yarn installなどを実行した際に以下のようなプロンプトが表示される。

$ docker compose run -it --rm frontend yarn install
! Corepack is about to download https://repo.yarnpkg.com/4.4.0/packages/yarnpkg-cli/bin/yarn.js
? Do you want to continue? [Y/n]

非表示にする方法

DockerfileENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0 を追記すると表示されなくなる。

ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
$ docker compose run -it --rm frontend yarn install                 
➤ YN0065: Yarn will periodically gather anonymous telemetry: https://yarnpkg.com/advanced/telemetry
➤ YN0065: Run yarn config set --home enableTelemetry 0 to disable

➤ YN0000: · Yarn 4.4.0
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed

参考

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?