Error installing laravel disk

Asked 2 years ago, Updated 2 years ago, 127 views

Prerequisites

An error occurred when trying to install the laravel disk.I would appreciate it if you could tell me how to deal with it.Ravel Framework 9.26.1

composer require -- devlaravel/dusk

t I am asking the same question on teratail.
https://teratail.com/questions/kn96jmwhjmt0l8

Problems/Error Messages you are experiencing

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

  Problem 1
    - laravel/dusk [v5.0.0, ..., v5.0.2] require illustrate/console to 5.7.0 | to 5.8.0-> found illustrate/console [v5.7.0, ..., 5.8.x-dev] but these are not loaded, like because it conflicts with other requirements.
    - laravel/dusk v5.0.3 requirements illustrate/console ~ 5.7.0 | ~ 5.8.0 | ~ 5.9.0 - > found illustrate/console [v5.7.0, ..., 5.8.x-dev] but these are not loaded, likely because it conflicts with another requirement.
    - laravel/dusk [5.0.x-dev, ..., v5.11.0] require ext-zip*->it is missing from your system. Install or enable PHP's zip extension.
    - Root composer.json requirements larvel/dusk^5.0-> satis feasible by larvel/dusk [v5.0.0, ..., v5.11.0].

To enable extensions, verify that they are enabled in your.ini files:
    - /usr/local/etc/php/php.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    - /usr/local/etc/php/conf.d/xdebug.ini
You can run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-zip` to temporary ignore these required extensions.
You can always re-running composer require with an explicit version constraint, e.g. "composer require laravel/dusk: * " to configure if any version is installable, or "composer require larvel/dusk:^2.1 " if you know what you need.

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

Supplementary information (for example, FW/Tool Version)

{
    "name": "larvel/larvel",
    "type": "project",
    "description": "The Ravel Framework.",
    "keywords": ["framework", "larvel",
    "license": "MIT",
    "require": {
        "php": "^8.0.2",
        "guzzlehttp/guzzle": "^7.2",
        "inertiajs/inertia-larvel": "^0.5.4",
        "larvel/framework": "^9.19",
        "larvel/sanctum": "^2.8",
        "larvel/tinker": "^2.7",
        "ightenco/ziggy": "^1.0"
    },
    "require-dev": {
        "barryvdh/larvel-ide-helper": "^2.12",
        "fakerphp/faker": "^1.9.1",
        "larvel/breeze": "^1.11",
        "larvel/pint": "^1.0",
        "larvel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^6.1",
        "phpunit/phpunit": "^9.5.10",
        "spatie/larvel-ignition": "^1.0",
        "squizlabs/php_codesniffer": "^3.7"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            US>"Tests\\":"tests/"
        }
    },
    "scripts": {
        "post-autoload-dump":[
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@phpartisan package:discover --ansi"
        ],
        "post-update-cmd":[
            "@phpartisan vendor:public--tag=larvel-assets--ansi--force"
        ],
        "post-root-package-install": [
            "@php-r\"file_exists('.env')||copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@phpartisan key: generate --ansi"
        ]
    },
    "extra": {
        "larvel": {
            "don't-discover": [ ]
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin"—true
        }
    },
    "minimum-stability": "dev",
    "prefer-stable"—true
}

laravel composer

2022-09-29 22:54

1 Answers

I was building the environment with docker, but when I installed the laravel disk with the following in dockerfile, it worked.

RUN apt-get update
RUN apt-get-y install libzip-dev
RUN docker-php-ext-install zip


2022-09-29 22:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.