Skip to content

Composer could not find a composer.json file in /app #1800

@yveshema

Description

@yveshema

I am trying to follow the official guide to install dependencies for my Laravel project. When I run this command:

$ docker run --rm --interactive --tty \
  --volume $PWD:/app \
  composer install

it throws the following error:
Composer could not find a composer.json file in /app
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section

I came here looking for answers and saw that the issue appears to be a common one, but it appears a solution is yet to be found.
I am running this on a Fedora machine and docker version: 19.03.11
I am hoping someone had the same issue and maybe found an workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions