すいません、教えてください。
- composerのインストール及びパッケージのインストールをしようとして、
php composer.phar install --no-dev --prefer-source
しばらくしたら、下記のエラーが発生して先に進まなくて悩んでおります。
~出力結果 - Installing unicodeveloper/laravel-password (1.0.3): Cloning c2e532cbbb - Installing watson/validating (3.3.0): Cloning 288eb177e9 Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead. Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead. Writing lock file Generating optimized autoload files Carbon 1 is deprecated, see how to migrate to Carbon 2. https://carbon.nesbot.com/docs/#api-carbon-2 You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it. > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover In PasswordStrengthServiceProvider.php line 38: Class 'Str' not found Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
と表示されて何やらphpunit/phpunit-mock-objects というパッケージは放棄されているから
使うべきじゃないよ?」という怒られております。
- composerのバージョンは以下になっております。
#./composer.phar ______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ / __ `__ / __ / __ / ___/ _ / ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ Composer version 1.9.3 2020-02-04 12:58:49
- またcomposer.jsonの中身は下記になっております。
#less composer.json { "name": "itweb/itweb", "description": "Open source asset management system built on Laravel.", "keywords": ["assets", "asset-management", "laravel"], "license": "AGPL-3.0-or-later", "type": "project", "require": { "php": ">=7.1.2", "barryvdh/laravel-cors": "^0.11.3", "barryvdh/laravel-debugbar": "^3.2", "doctrine/cache": "^1.8", "doctrine/common": "^2.10", "doctrine/dbal": "2.9.0", "doctrine/inflector": "^1.3", "doctrine/instantiator": "^1.2", "eduardokum/laravel-mail-auto-embed": "^1.0", "enshrined/svg-sanitize": "^0.13.0", "erusev/parsedown": "^1.7", "fideloper/proxy": "^4.1", "guzzlehttp/guzzle": "^6.3", "intervention/image": "^2.4", "javiereguiluz/easyslugger": "^1.0", "laravel/framework": "5.5.*", "laravel/passport": "4.*", "laravel/tinker": "^1.0", "laravelcollective/html": "^5.5", "league/csv": "^9.2", "maknz/slack": "^1.7", "neitanod/forceutf8": "^2.0", "patchwork/utf8": "^1.3", "phpdocumentor/reflection-docblock": "^4.0", "phpspec/prophecy": "^1.8", "pragmarx/google2fa": "^5.0", "pragmarx/google2fa-laravel": "^1.0", "predis/predis": "^1.1", "rollbar/rollbar-laravel": "2.*", "schuppo/password-strength": "~1.5", "spatie/laravel-backup": "^5.12", "tecnickcom/tc-lib-barcode": "^1.15", "tightenco/ziggy": "^0.7.1", "unicodeveloper/laravel-password": "^1.0", "watson/validating": "^3.0" { "name": "itweb/itweb", "description": "Open source asset management system built on Laravel.", "keywords": ["assets", "asset-management", "laravel"], "license": "AGPL-3.0-or-later", "type": "project", "require": { "php": ">=7.1.2", "barryvdh/laravel-cors": "^0.11.3", "barryvdh/laravel-debugbar": "^3.2", "doctrine/cache": "^1.8", "doctrine/common": "^2.10", "doctrine/dbal": "2.9.0", "doctrine/inflector": "^1.3", "doctrine/instantiator": "^1.2", "eduardokum/laravel-mail-auto-embed": "^1.0", "enshrined/svg-sanitize": "^0.13.0", "erusev/parsedown": "^1.7", "fideloper/proxy": "^4.1", "guzzlehttp/guzzle": "^6.3", "intervention/image": "^2.4", "javiereguiluz/easyslugger": "^1.0", "laravel/framework": "5.5.*", "laravel/passport": "4.*", "laravel/tinker": "^1.0", "laravelcollective/html": "^5.5", "league/csv": "^9.2", "maknz/slack": "^1.7", "neitanod/forceutf8": "^2.0", "patchwork/utf8": "^1.3", "phpdocumentor/reflection-docblock": "^4.0", "phpspec/prophecy": "^1.8", "pragmarx/google2fa": "^5.0", "pragmarx/google2fa-laravel": "^1.0", "predis/predis": "^1.1", "rollbar/rollbar-laravel": "2.*", "schuppo/password-strength": "~1.5", "spatie/laravel-backup": "^5.12", "tecnickcom/tc-lib-barcode": "^1.15", "tightenco/ziggy": "^0.7.1", "unicodeveloper/laravel-password": "^1.0", "watson/validating": "^3.0" { "name": "itweb/itweb", "description": "Open source asset management system built on Laravel.", "keywords": ["assets", "asset-management", "laravel"], "license": "AGPL-3.0-or-later", "type": "project", "require": { "php": ">=7.1.2", "barryvdh/laravel-cors": "^0.11.3", "barryvdh/laravel-debugbar": "^3.2", "doctrine/cache": "^1.8", "doctrine/common": "^2.10", "doctrine/dbal": "2.9.0", "doctrine/inflector": "^1.3", "doctrine/instantiator": "^1.2", "eduardokum/laravel-mail-auto-embed": "^1.0", "enshrined/svg-sanitize": "^0.13.0", "erusev/parsedown": "^1.7", "fideloper/proxy": "^4.1", "guzzlehttp/guzzle": "^6.3", "intervention/image": "^2.4", "javiereguiluz/easyslugger": "^1.0", "laravel/framework": "5.5.*", "laravel/passport": "4.*", "laravel/tinker": "^1.0", "laravelcollective/html": "^5.5", "league/csv": "^9.2", "maknz/slack": "^1.7", "neitanod/forceutf8": "^2.0", "patchwork/utf8": "^1.3", "phpdocumentor/reflection-docblock": "^4.0", "phpspec/prophecy": "^1.8", "pragmarx/google2fa": "^5.0", "pragmarx/google2fa-laravel": "^1.0", "predis/predis": "^1.1", "rollbar/rollbar-laravel": "2.*", "schuppo/password-strength": "~1.5", "spatie/laravel-backup": "^5.12", "tecnickcom/tc-lib-barcode": "^1.15", "tightenco/ziggy": "^0.7.1", "unicodeveloper/laravel-password": "^1.0", "watson/validating": "^3.0" }, "require-dev": { "codeception/codeception": "2.3.6", "filp/whoops": "~2.0", "fzaninotto/faker": "~1.4", "phpunit/php-token-stream": "1.4.11", "phpunit/phpunit": "~6.0", "roave/security-advisories": "dev-master", "squizlabs/php_codesniffer": "*", "symfony/css-selector": "3.1.*", "symfony/dom-crawler": "3.1.*" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\": "app/" } }, "autoload-dev": { "classmap": [ "tests/TestCase.php", "tests/unit/BaseTest.php" ] }, "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, "process-timeout":3000, "platform": { "php": "7.1.2" } } }
#php -v PHP 7.2.28 (cli) (built: Feb 18 2020 11:07:04) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
composer.json を何らかに書き換えて、php composer.phar update などと
すれば良いと考えているのですがどうすればこの事象を解決できますでしょうか?
当方、PHPやcomposerなどは素人に近いので詳しい方、ご教授下さい。
ちなみに、1年前ほど同じインストール方法を行った際には問題なくできました。
何らからで既にこのやり方でできなくなっていると推測します。
よろしくお願いいたします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/02/29 05:57