mercredi 31 mars 2021

laravel debugbar package installation failed

I am trying to install the Debugbar Laravel package to my website using this command:

composer require barryvdh/laravel-debugbar --dev

But it shows error on the terminal

Installation failed, reverting ./composer.json and ./composer.lock to
their original content.
 
[ErrorException]   file_get_contents(): Filename cannot be empty

I have searched a lot but cannot find the proper solution, I have also tried other testing packages like a telescope, clockwork but nothing works and installs.

My composer.json file:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.0.0",
        "ext-curl": "*",
        "authorizenet/authorizenet": "~1.9.6",
        "barryvdh/laravel-dompdf": "^0.8.4",
        "codeitnowin/barcode": "^3.0",
        "cornford/googlmapper": "2.*",
        "fideloper/proxy": "~3.3",
        "ghattrell/activecampaign": "^1.1",
        "google/recaptcha": "^1.2",
        "intervention/image": "^2.5",
        "jrl05k/laravel-under-construction": "^1.0",
        "jrm2k6/cloudder": "0.6.0",
        "kyslik/column-sortable": "5.5.*",
        "laracasts/utilities": "^3.0",
        "laravel/framework": "5.5.*",
        "laravel/socialite": "^3",
        "laravel/tinker": "~1.0",
        "laravelcollective/html": "^5.4.0",
        "larsjanssen6/underconstruction": "^4.0",
        "pusher/pusher-php-server": "^3.2",
        "spatie/geocoder": "^3.3",
        "symfony/polyfill-iconv": "^1.9",
        "tightenco/ziggy": "v0.6.8.1",
        "tjphippen/docusign": "0.3.*@dev",
        "tucker-eric/docusign-rest-client": "^1.0",
        "twilio/sdk": "*",
        "werneckbh/laravel-qr-code": "^0.1.3"
    },
    "require-dev": {
        "filp/whoops": "~2.0",
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "~1.0",
        "phpunit/phpunit": "~6.0",
        "symfony/thanks": "^1.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true,
        "platform": {
            "php": "7.0.0"
        }
    }
}

Laravel framework: 5.5

PHP installed on my system: 7.4

I have even removed kylekatarnls folder from the vendors folder and tried again but still, nothing works.

complete error message:

PS C:\xampp\htdocs\lpitch_latest\lease_pitch> composer require barryvdh/laravel-debugbar:3.4.2 --dev ./composer.json has been updated

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

[ErrorException] file_get_contents(): Filename cannot be empty

require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] []...



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3m6SiDM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire