Composer could not find a composer.json

后端 未结 11 768
南方客
南方客 2020-12-29 07:52

I tried to install composer via brew per:

In usr/local/bin (which was not on Mavricks and I had to make personally) I did.

brew tap jose

11条回答
  •  时光取名叫无心
    2020-12-29 08:15

    In my case, I did not copy all project files to the folder where I was running composer install. So do:

    1. Copy your project files (including the composer.json) to folder
    2. open CMD (I am using ConEmu), navigate to the new folder, run composer install from there
    3. It should work or throw errors in case the json file is not correct.

    If you just want to make composer run, create a new composer.json file with for example:

    {
        "require": {
            "php": ">=5.3.2"
        }
    }
    

    Then run composer install.

提交回复
热议问题