php - Composer update - Script cache:clear returned with error code 255
Get the solution ↓↓↓Mycomposer update
command is returning an error. The problem is coming fromvendor
folder. I downloaded skeleton project for Symfony 5 and everything seems to be set right.
This is my error in console.
I tried clearing cache folder and deleting vendor folder, than starting command again, but no luck.
Also, when I docomposer update --no-scripts
as suggested below and docker up the project I get the same error when I try to access it. project browser
Answer
Solution:
welcome on Stackoverflow.
It could happens with some vendor folder when vendor does not implement receipes on flex. Because of error during cache clearing, the composer reinitialized your vendor directory.
You should configure the bundle of vendor. To do that, launch composer update, but do not launch scripts.
composer update --no-scripts
The vendor directory will be copied and won't be anymore deleted. Then configure the bundle of vendor. Then execute the cache command manualy.
php bin/console cache:clear
or
symfony console cache:clear
Answer
Solution:
- Delete vendor folder
- Delete composer.lock
- Delete var/cache
- Run the composer install command.
If you trying for fresh new pimcore, this might work.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: method illuminate\database\eloquent\collection::paginate does not exist.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.