S
S
Svetlana Galenko2020-11-14 18:40:31
Yii
Svetlana Galenko, 2020-11-14 18:40:31

Why can't install phpnt/yii2-cms?

Hello, when trying to install yii2-cms, I get an error:
[RuntimeException]
Root package 'phpnt/yii2-cms' cannot require itself in its composer.json
Did you accidentally name your root package after an external package?

How to understand that I named the root package after the outer one?
I don’t understand something at all ... I

install it as per the instructions:
https://github.com/phpnt/yii2-cms#2-php-init

I enter this:
composer create-project --prefer-dist phpnt/yii2-cms project

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Svetlana Galenko, 2020-11-14
@swallow_97

Thanks to Dmitry , it was possible to solve the problem.
1) Download the archive from git
2) Unpack to the desired directory.
3) From composer.json, delete the line "phpnt/yii2-cms": "*",
4) In the directory with the files, execute php init then composer install
Everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question