0

I've recently started managing a system that uses Composer to handle dependencies and I need to update it. When logging into the Ubuntu console I run the composer update command, but it throws an error saying it does not find the .json file. I've managed to find it but it's nested in a subdirectory, and I wouldn't know how to word a command that finds it there. I'm very much a newbie in managing this.

Any help would be appreciated. Thanks in advance!

I've tried running the composer update command, but it throws an error saying it does not find the .json file.

Solved here

  • Please add the error message you ask about to the question by [edit]ing it in. And what have you tried so far? – hakre Dec 01 '22 at 11:27
  • Why not use `cd` to get to that subdirectory? Usually, that is the main folder of your application, so it should not be a secret – Nico Haase Dec 01 '22 at 13:54
  • Hi @hakre ! Thank you for letting me know proper procedure for posting, I'm also a newb at this site's etiquette. I have managed to resolve it thanks to a previous comment. Cheers! – behindicebergs Dec 01 '22 at 22:45
  • @NicoHaase I did not know of the command in question, but using "composer update --working-dir" did indeed work. I will investigate the command you mentioned anyway. Thanks! – behindicebergs Dec 01 '22 at 22:47
  • The quick SO intro: using `cd` would be off-topic, because it is about general computer use (use another Stackexchange site to ask what you can do next after SSH into a computer). To ask about `composer -d` looks on-topic as per the reference. And that's already it. And thanks for your feedback. – hakre Dec 02 '22 at 05:43

0 Answers0