简体   繁体   English

作曲家更新时出现无效字符和更新后 cmd 错误 Laravel

[英]Invalid characters and post-update-cmd error on composer update Laravel

When I try to update any dependencies I get the error below:当我尝试更新任何依赖项时,出现以下错误:

1 - [ErrorException]                                                             
  Invalid characters passed for attempted conversion, these have been ignored

2 - Script php artisan optimize handling the post-update-cmd event returned with error code 1

Composer file:作曲家文件:

    {
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=7.4.3",
        "laravel/framework": "5.2.*",
        "league/flysystem-aws-s3-v3": "~1.0",
        "yajra/laravel-datatables-oracle": "~6.0",
        "laravel/socialite": "^2.0",
        "skovmand/mailchimp-laravel": "1.*",
        "barryvdh/laravel-dompdf": "0.6.*",
        "google/cloud": "^0.135.0",
        "superbalist/flysystem-google-storage": "^7.2",
        "php-ffmpeg/php-ffmpeg": "^0.16.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "symfony/css-selector": "2.8.*|3.0.*",
        "symfony/dom-crawler": "2.8.*|3.0.*"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}

Answer on the behalf of OP:代表OP回答:

Run below cmd to fix this:运行下面的 cmd 来解决这个问题:

 composer update --no-scripts --no-plugins

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 脚本php artisan使用laravel 5.4优化处理错误代码为1返回的post-update-cmd事件 - Script php artisan optimize handling the post-update-cmd event returned with error code 1 with laravel 5.4 “ composer install”调用post-update-cmd而不是post-install-cmd - “composer install” invokes post-update-cmd instead of post-install-cmd Laravel 5.3项目安装:脚本php artisan优化处理返回的错误代码为255的post-update-cmd事件 - Laravel 5.3 project install : Script php artisan optimize handling the post-update-cmd event returned with error code 255 脚本php artisan优化处理返回的post-update-cmd事件,错误代码为1 - Script php artisan optimize handling the post-update-cmd event returned with error code 1 Symfony2 post-update-cmd给出“生成引导文件时发生错误” - Symfony2 post-update-cmd gives “An error occurred when generating the bootstrap file” 脚本php artisan优化处理错误代码为255返回的post-update-cmd事件 - Script php artisan optimize handling the post-update-cmd event returned with error code 255 在Symfony2项目中的“post-update-cmd”上运行命令 - Running command on “post-update-cmd” in Symfony2 project 脚本php artisan进行了明确编译,处理了返回错误代码为1的post-update-cmd事件 - Script php artisan clear-compiled handling the post-update-cmd event returned with error code 1 Laravel 错误编辑器更新 - Laravel Error Composer Update Laravel 5.11 Composer更新错误 - Laravel 5.11 Composer Update Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM