LoginSignup
0

More than 3 years have passed since last update.

EC2上でCannot create cache directory

Last updated at Posted at 2019-05-30

私の場合はEC2上でcomposer iを実行すると発生。
権限がなさそう。

Cannot create cache directory /home/ec2-user/.cache/composer/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/ec2-user/.cache/composer/files/, or directory is not writable. Proceeding without cache

/home/ec2-user/.cache/composer/composerは環境によるので注意

同じ現象と答え
Cannot create cache directory .. or directory is not writable. Proceeding without cache in Laravel Ask Question
Cannot create cache directory in Laravel

解決

ディレクトリの所有権を変更。
※環境による

sudo chown -R ec2-user /home/ec2-user/.cache/

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