Laravel throws 'The bootstrap/cache directory must be present and writable' error after update

后端 未结 12 670
礼貌的吻别
礼貌的吻别 2020-12-14 14:03

I used \'composer update\', which updated a few packages. During the updating process the website still functions. However, after it says \'The compiled services file has be

相关标签:
12条回答
  • 2020-12-14 14:20

    The best way to resolve this error is : 1. Open your project folder 2. Move to the bootstrap directory 3. Create an empty folder named as "cache" 4. Then do php artisan cache: clear This will work for sure

    0 讨论(0)
  • 2020-12-14 14:23

    I don't imagine what I got done wrong with that before and no games around with that cashclearings had sense. But as it claims there was no 'cache' folder inside /bootstrapp . Had to have create it manually. Now it all rocks ok again

    0 讨论(0)
  • 2020-12-14 14:24

    Try this too after you have run the composer update:

    php artisan config:clear
    
    0 讨论(0)
  • 2020-12-14 14:27

    it work for me run in project folder

     sudo chmod -R 777 bootstrap/cache
    

    than run

     composer update
    

    than run

     cache:clear
    
    0 讨论(0)
  • 2020-12-14 14:28

    Im using cmder on windows 10 in non elevated mode (Non-Admin). command php artisan cache:clear did not work for me. The folder bootstrap/cache did not exist. I created the folder and removed readonly from both bootstrap and bootstrap/cache folder. Both composer install and composer update are working now.

    0 讨论(0)
  • 2020-12-14 14:30

    Try this after you have run the composer update:

    php artisan cache:clear
    
    0 讨论(0)
提交回复
热议问题