mpociot / laravel-apidoc-generator

Laravel API Documentation Generator
https://beyondco.de/docs/laravel-apidoc-generator/
MIT License
3.43k stars 614 forks source link

When installing the package, an error is reported. #816

Open andyzu opened 3 years ago

andyzu commented 3 years ago

laravel/framework v8.50.0 PHP7.3.9

composer require mpociot/laravel-apidoc-generator

Using version ^4.8 for mpociot/laravel-apidoc-generator ./composer.json has been updated Running composer update mpociot/laravel-apidoc-generator Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

andycowan commented 3 years ago

I'm also seeing this. Laravel 8.50.0

jeanremy commented 3 years ago

Same for me, with Laravel 8.40 et PHP 8.0.8.

andycowan commented 3 years ago

In another issue below, people are recommending to use scribe (knuckleswtf/scribe)

Looks like a good successor to apidocs, uses the same tags, and does install.

andycowan commented 3 years ago

https://scribe.knuckles.wtf/

jeanremy commented 3 years ago

Will have a look, thanks @andycowan !

MathiasWeisheit commented 3 years ago

Hi, I have a similar problem:

PS C:\data\Workspaces\laravel-app-template> helper/composer require --dev mpociot/laravel-apidoc-generator Using version ^4.8 for mpociot/laravel-apidoc-generator ./composer.json has been updated Running composer update mpociot/laravel-apidoc-generator Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content. PS C:\data\Workspaces\laravel-app-template> helper/c php artisan --version Laravel Framework 8.55.0 PS C:\data\Workspaces\laravel-app-template> helper/c php -v PHP 7.3.14 (cli) (built: Jan 27 2020 21:55:23) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.14, Copyright (c) 1998-2018 Zend Technologies PS C:\data\Workspaces\laravel-app-template>

ravuthz commented 3 years ago

Me too :(

StevyMarlino commented 3 years ago

Hello i have a same issue !! some body solve it ?

melnykarena commented 3 years ago

Same issue.

thanhdevapp commented 3 years ago

same problem

Conclusion: don't install laravel/framework v8.57.0 (conflict analysis result)

albertoarena commented 3 years ago

Same here

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mpociot/laravel-apidoc-generator v4.x-dev requires ramsey/uuid ^3.8 -> found ramsey/uuid[3.8.0, ..., 3.x-dev] but the package is fixed to 4.2.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - mpociot/laravel-apidoc-generator[4.8.0, ..., 4.8.2] require illuminate/console ^5.7|^6.0|^7.0 -> found illuminate/console[v5.7.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires mpociot/laravel-apidoc-generator ^4.8 -> satisfiable by mpociot/laravel-apidoc-generator[4.8.0, 4.8.1, 4.8.2, v4.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Current composer.json

{
    "require": {
        "php": "^7.4|^8.0",
        "ext-json": "*",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "illuminate/support": "^v8.57.0",
        "laravel/framework": "^8.54",
        "laravel/sanctum": "^2.11",
        "laravel/tinker": "^2.5",
        "tymon/jwt-auth": "^1.0.2"
    },
    "require-dev": {
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "jaschilz/php-coverage-badger": "^2.0",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.5"
    },
}
Aqitaniya commented 3 years ago

Same issue

composer require mpociot/laravel-apidoc-generator

Using version ^4.8 for mpociot/laravel-apidoc-generator
./composer.json has been updated
Running composer update mpociot/laravel-apidoc-generator
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mpociot/laravel-apidoc-generator v4.x-dev requires ramsey/uuid ^3.8 -> found ramsey/uuid[3.8.0, ..., 3.x-dev] but the package is fixed to 4.2.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - mpociot/laravel-apidoc-generator[4.8.0, ..., 4.8.2] require illuminate/console ^5.7|^6.0|^7.0 -> found illuminate/console[v5.7.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but these were not loaded, likely because it conflicts with another require.
    - Root composer.json requires mpociot/laravel-apidoc-generator ^4.8 -> satisfiable by mpociot/laravel-apidoc-generator[4.8.0, 4.8.1, 4.8.2, v4.x-dev].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Laravel Framework 8.61.0

neoacevedo commented 3 years ago

This project is abandoned.

suriya-a9 commented 1 year ago

wtf!!!!!!!!!!!!!................