PrimitiveSocial/openapi-initializer

Issue installing with laravel versions

Closed this issue · 1 comments

Step 1 create project with laravel:
composer create-project laravel/laravel ProjectName

Step 2 run:
composer require --dev primitive/openapi-initializer

Result:

Using version ^1.4 for primitive/openapi-initializer
./composer.json has been updated
Running composer update primitive/openapi-initializer
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - orchestra/testbench[v4.0.0, ..., v4.0.1] require laravel/framework ^6.0 -> found laravel/framework[v6.0.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v4.1.0 requires laravel/framework ^6.1 -> found laravel/framework[v6.1.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v4.2.0 requires laravel/framework ^6.2 -> found laravel/framework[v6.2.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v4.3.0, ..., v4.4.1] require laravel/framework ^6.4 -> found laravel/framework[v6.4.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v4.5.0, ..., v4.6.0] require laravel/framework ^6.9 -> found laravel/framework[v6.9.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v4.7.0, ..., v4.13.0] require laravel/framework ^6.18 -> found laravel/framework[v6.18.0, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v4.14.0, ..., 4.x-dev] require laravel/framework ^6.20.12 -> found laravel/framework[v6.20.12, ..., 6.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v5.0.0 requires laravel/framework ^7.0 -> found laravel/framework[v7.0.0, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v5.0.1 requires laravel/framework ^7.0.1 -> found laravel/framework[v7.0.1, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v5.0.2 requires laravel/framework ^7.0.6 -> found laravel/framework[v7.0.6, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v5.1.0, ..., v5.2.0] require laravel/framework ^7.1 -> found laravel/framework[v7.1.0, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v5.3.0, ..., v5.4.0] require laravel/framework ^7.10 -> found laravel/framework[v7.10.0, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v5.5.0, ..., v5.12.1] require laravel/framework ^7.24 -> found laravel/framework[v7.24.0, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v5.13.0, ..., 5.x-dev] require laravel/framework ^7.30.3 -> found laravel/framework[v7.30.3, ..., 7.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v6.3.0, ..., v6.7.0] require laravel/framework ^8.0 -> found laravel/framework[v8.0.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v6.7.1, ..., v6.7.2] require laravel/framework ^8.18.1 -> found laravel/framework[v8.18.1, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v6.8.0, ..., v6.9.0] require laravel/framework ^8.22.1 -> found laravel/framework[v8.22.1, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v6.10.0, ..., v6.18.0] require laravel/framework ^8.25 -> found laravel/framework[v8.25.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v6.19.0 requires laravel/framework ^8.26 -> found laravel/framework[v8.26.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v6.20.0, ..., v6.21.1] require laravel/framework ^8.54 -> found laravel/framework[v8.54.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v6.22.0 requires laravel/framework ^8.65 -> found laravel/framework[v8.65.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v6.23.0 requires laravel/framework ^8.67 -> found laravel/framework[v8.67.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench v6.23.1 requires laravel/framework ^8.71 -> found laravel/framework[v8.71.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - orchestra/testbench[v6.23.2, ..., 6.x-dev] require laravel/framework ^8.75 -> found laravel/framework[v8.75.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
    - primitive/openapi-initializer 1.4.0 requires orchestra/testbench ^4.0||^5.0||^6.3 -> satisfiable by orchestra/testbench[v4.0.0, ..., 4.x-dev, v5.0.0, ..., 5.x-dev, v6.3.0, ..., 6.x-dev].
    - Root composer.json requires primitive/openapi-initializer ^1.4 -> satisfiable by primitive/openapi-initializer[1.4.0].

You can also try re-running composer require with an explicit version constraint, e.g. "composer require primitive/openapi-initializer:*" to figure out if any version is installable, or "composer require primitive/openapi-initializer:^2.1" if you know which you need.

Installation failed, reverting ./composer.json to its original content.

I tried to change the laravel version but I get into other errors and couldn't solve them.

Chnage composer version 1 to convert 2

Run: composer self-update --2

https://www.nicesnippets.com/blog/how-to-switch-between-composer-version-1-and-2-in-laravel