Composer could not find a composer.json
n00bhax opened this issue · 2 comments
Trying a fresh install of drupal 9 using this project.
I'm very new to composer, drush and drupal.
When installing the given composer.json some tasks are taken care of:
To install the json, I assume "php composer.phar install" must be ran, but this gives the following:
Composer could not find a composer.json file in /home/mydir
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
The .json is in another directory than the composer.phar file.
Yes you need to be inside a directory with a valid composer.json when running the install command. Alternatively run the create-project command from the README which will create the project in a new, given directory (replace some-dir with any other directory name). Yes seems git is necessary.