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

untymage's avatar

PHPStorm not recognizes composer in Run Anything

I want to execute some composer command inside the phpstorm (Run Anything), But when i do : composer update it says :

Error running 'composer update' Cannot run program composer in directory C:\xamp\htdoc\myprojct

I configured the exceutable composer in

File | Settings | Languages & Frameworks | PHP | Composer

But not working

0 likes
3 replies
bugsysha's avatar

Closing and opening PhpStorm helped me. Also I don't think that Run Anything uses File | Settings | Languages & Frameworks | PHP | Composer settings. It is in a nutshell a way for you to run anything from your terminal through PhpStorm UI.

untymage's avatar

So there is no way to run composer in Run Anything ?

bugsysha's avatar

Yes there is, but it will not work all the time. At least it does not work for me.

Please or to participate in this conversation.