php - Composer update - Script cache:clear returned with error code 255Get the solution ↓↓↓
composer update command is returning an error. The problem is coming from
vendor 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 do
composer update --no-scripts as suggested below and docker up the project I get the same error when I try to access it. project browser
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
symfony console cache:clear
- Delete vendor folder
- Delete composer.lock
- Delete var/cache
- Run the composer install command.
If you trying for fresh new pimcore, this might work.
People are also looking for solutions of the problem: cannot add or update a child row: a foreign key constraint fails
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.
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.