Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ltloafer's avatar

Cant composer update

Hi,

On composer update (production server) I get the following :

Generating autoload files [ErrorException] file_put_contents(/home/forge/default/bootstrap/cache/services.json): failed t o open stream: No such file or directory Script php artisan clear-compiled handling the post-update-cmd event returned wi th an error

Any help appreciated... Thanks

0 likes
9 replies
Ltloafer's avatar

Actually - this is occurring on my local dev.

pmall's avatar

It is super wried the framework want to access something in bootstrap bootstrap/cache/services.json.

strmizo's avatar

guys any help with this, i don't know why composer want to bootstrap/cache/services.json which id doesn't exist, please !

seomike's avatar
seomike
Best Answer
Level 5

Making a cache dir in /bootstrap fixed this for me.

3 likes
novica.vukobratovic's avatar

Like seomike said, just create a folder under app_root/bootstrap directory and name it "cache". Then, just refresh the page and it will all work again.

1 like

Please or to participate in this conversation.