J
J
JP_Cool2017-12-29 14:39:15
Composer
JP_Cool, 2017-12-29 14:39:15

Where can I get the composer.json file for Open Server?

When installing the Laravel framework, it gives the following error:

Composer could not find a composer.json file in C:\openserver

Where can I get this file? This error pops up with any command, be it composer update and others. I use Open Server, where composer is installed by default, I thought that the problem was in Open Server itself, reinstalled it, but the error remained.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-12-29
@JP_Cool

You seem to be running the command in the wrong place. You have a folder in which there is laravel, composer.json is located there. Judging by the error - you are running composer in the root of openServer, otherwise there should not be composer.json, and apparently there is no error about this either.
Run commands in the project folder, not in C:\openserver. To do this, run
cd domain
cd somemyprojectfolder in the console
and only after that run update, etc.
You can check the performance of the composer from anywhere, for example, with the
composer self-update command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question