0
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?

More than 3 years have passed since last update.

Dockerコンテナ内でyarn installを実行したら遅い上にエラーがでた

0
Last updated at Posted at 2022-10-11
error An unexpected error occurred: "ENOTEMPTY: directory not empty, rmdir '/app/node_modules/.bin'".
info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

状況

  • ReactコンテナをDocker composeで立ち上げ、yarn installを実行
  • 途中で止まる&エラーが出て失敗(エラー文は↑)

環境

windows10 21H2
Docker Desktop 4.12.0

対処法

ローカルのnode_modulesを削除してから再度実行する

エラー文から、ディレクトリが空ではないことが原因だと読み取れたので、ローカルのnode_modulesを削除
その後yarn installを実行すると成功(しかしとてつもなく遅い・・・・)

参考

0
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
0
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?