T
T
Theory Theory2020-08-04 17:15:10
Composer
Theory Theory, 2020-08-04 17:15:10

How to install composer in yii2 folder?

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
composer create-project --prefer-dist yiisoft/yii2-app-basic .

resulting in: Warning: require(/var/www/project/frontend/web/../../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/project/frontend /web/index.php on line 5

There is no vendor folder at all, should I install composer directly in the yii2 folder???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-08-04
@Narbek

Just enter composer installin the folder with Yii2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question