os ubuntu

composer is installed globally

I enter (in the folder under the project):

composer create-project --prefer-dist --stability = dev vova07 / yii2-start yii2-start

displays a message

[InvalidArgumentException]
Composer couldn’t find a composer.json file in / home / chupakabra / my_www / vhost1 / composer_test / 2 / yii2
To create a composer.json file as described in the https: //getcomposer.or
g / "Getting Started" section

the instruction is taken from here https://github.com/vova07/yii2start

  • I have this line normally worked, maybe you do not exactly what you write? even if there is no write permission, the message will be different. True "normal" - without your message, I have other problems there: yiisoft / yii2 2.0.6 requires bower-asset / jquery 2.1.*@stable | 1.11.*@stable -> no matching package found. - BOPOH

1 answer 1

If I'm not mistaken, try to write self-update or composer self-update before doing it.