After composer update
I got an error:
In Filesystem.php line 146:
rename(/var/www/bootstrap/cache/packages.phpE7r5E4,/var/www/bootstrap/cache /packages.php): No such file or directory
Artisan commands don't work anymore. Already tried:
composer du
composer install
composer update
I found the problem, my windows docker (version 2.1.0.3) sometimes fails to execute. I don't know how it looks like the packages.php
file just got locked. So here is the recipe to fix:
bootstrap\\cache
artisan optimize
composer du
Everything went back to work like a magic. :)
run this command: composer dump-autoload
This command will clean up all compiled files and their paths.
enter this command in your terminal for clear cache: php artisan cache:clear
I had the same error and these commands helped me:
1. composer dump-autoload
2. php artisan cachce:clear
3. php artisan optimize:clear
对我来说,删除composer.lock
文件然后运行composer install
解决了这个问题。
Try:
composer dump-autoload
or:
artisan cache:clear
after you update or make changes to composer.json
to refresh everything.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.