PHP7.3.4版本切换到PHP7.1.9版本运行Laravel
Posted 知其黑、受其白
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP7.3.4版本切换到PHP7.1.9版本运行Laravel相关的知识,希望对你有一定的参考价值。
阅读目录
提示:错误信息
Laravel刚开始用的php7.3.4这个版本,后来切换到PHP7.1.9这个版本。
解决方案:
我删除了 vendor 文件夹,然后执行了以下指令:
composer install --ignore-platform-reqs
出现如下报错信息
最终解决办法
我删除了 vendor 文件夹,删除 composer.lock
文件。
PHP CLi 命令行执行:composer install
PS D:\\phpstudy_pro\\WWW\\Workerman\\tt.cc\\tla> composer install
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Info from https://repo.packagist.org: [37;44m#StandWith[30;43mUkraine[0m
Updating dependencies
Lock file operations: 84 installs, 0 updates, 0 removals
- Locking beyondcode/laravel-dump-server (1.3.0)
- Locking dnoegel/php-xdg-base-dir (v0.1.1)
- Locking doctrine/inflector (1.4.4)
- Locking doctrine/instantiator (1.4.1)
- Locking doctrine/lexer (1.2.3)
- Locking dragonmantank/cron-expression (v2.3.1)
- Locking egulias/email-validator (2.1.25)
- Locking erusev/parsedown (1.7.4)
- Locking fideloper/proxy (4.4.1)
- Locking filp/whoops (2.14.5)
- Locking fzaninotto/faker (v1.9.2)
- Locking hamcrest/hamcrest-php (v2.0.1)
- Locking jakub-onderka/php-console-color (v0.2)
- Locking jakub-onderka/php-console-highlighter (v0.4)
- Locking laravel/framework (v5.8.38)
- Locking laravel/tinker (v1.0.10)
- Locking league/flysystem (1.0.70)
- Locking mockery/mockery (1.3.5)
- Locking monolog/monolog (1.27.0)
- Locking myclabs/deep-copy (1.11.0)
- Locking nesbot/carbon (2.58.0)
- Locking nikic/php-parser (v4.13.2)
- Locking nunomaduro/collision (v3.1.0)
- Locking opis/closure (3.6.3)
- Locking paragonie/random_compat (v9.99.100)
- Locking phar-io/manifest (1.0.3)
- Locking phar-io/version (2.0.1)
- Locking phpdocumentor/reflection-common (2.1.0)
- Locking phpdocumentor/reflection-docblock (4.3.4)
- Locking phpdocumentor/type-resolver (1.0.1)
- Locking phpoption/phpoption (1.8.1)
- Locking phpspec/prophecy (v1.10.3)
- Locking phpunit/php-code-coverage (6.1.4)
- Locking phpunit/php-file-iterator (2.0.5)
- Locking phpunit/php-text-template (1.2.1)
- Locking phpunit/php-timer (2.1.3)
- Locking phpunit/php-token-stream (3.1.3)
- Locking phpunit/phpunit (7.5.20)
- Locking psr/container (1.0.0)
- Locking psr/log (1.1.4)
- Locking psr/simple-cache (1.0.1)
- Locking psy/psysh (v0.9.12)
- Locking ramsey/uuid (3.9.6)
- Locking sebastian/code-unit-reverse-lookup (1.0.2)
- Locking sebastian/comparator (3.0.3)
- Locking sebastian/diff (3.0.3)
- Locking sebastian/environment (4.2.4)
- Locking sebastian/exporter (3.1.4)
- Locking sebastian/global-state (2.0.0)
- Locking sebastian/object-enumerator (3.0.4)
- Locking sebastian/object-reflector (1.1.2)
- Locking sebastian/recursion-context (3.0.1)
- Locking sebastian/resource-operations (2.0.2)
- Locking sebastian/version (2.0.1)
- Locking swiftmailer/swiftmailer (v6.3.0)
- Locking symfony/console (v4.4.42)
- Locking symfony/css-selector (v4.4.37)
- Locking symfony/debug (v4.4.41)
- Locking symfony/error-handler (v4.4.41)
- Locking symfony/event-dispatcher (v4.4.42)
- Locking symfony/event-dispatcher-contracts (v1.1.12)
- Locking symfony/finder (v4.4.41)
- Locking symfony/http-client-contracts (v1.1.12)
- Locking symfony/http-foundation (v4.4.42)
- Locking symfony/http-kernel (v4.4.42)
- Locking symfony/mime (v4.4.42)
- Locking symfony/polyfill-ctype (v1.25.0)
- Locking symfony/polyfill-iconv (v1.25.0)
- Locking symfony/polyfill-intl-idn (v1.25.0)
- Locking symfony/polyfill-intl-normalizer (v1.25.0)
- Locking symfony/polyfill-mbstring (v1.25.0)
- Locking symfony/polyfill-php72 (v1.25.0)
- Locking symfony/polyfill-php73 (v1.25.0)
- Locking symfony/polyfill-php80 (v1.25.0)
- Locking symfony/process (v4.4.41)
- Locking symfony/routing (v4.4.41)
- Locking symfony/service-contracts (v1.1.12)
- Locking symfony/translation (v4.4.41)
- Locking symfony/translation-contracts (v1.1.12)
- Locking symfony/var-dumper (v4.4.42)
- Locking theseer/tokenizer (1.1.3)
- Locking tijsverkoyen/css-to-inline-styles (2.2.4)
- Locking vlucas/phpdotenv (v3.6.10)
- Locking webmozart/assert (1.9.1)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 84 installs, 0 updates, 0 removals
- Downloading symfony/polyfill-php80 (v1.25.0)
- Downloading symfony/polyfill-mbstring (v1.25.0)
- Downloading symfony/var-dumper (v4.4.42)
- Downloading symfony/polyfill-ctype (v1.25.0)
- Downloading phpoption/phpoption (1.8.1)
- Downloading vlucas/phpdotenv (v3.6.10)
- Downloading symfony/css-selector (v4.4.37)
- Downloading tijsverkoyen/css-to-inline-styles (2.2.4)
- Downloading symfony/routing (v4.4.41)
- Downloading symfony/process (v4.4.41)
- Downloading symfony/polyfill-php73 (v1.25.0)
- Downloading symfony/polyfill-intl-idn (v1.25.0)
- Downloading symfony/mime (v4.4.42)
- Downloading symfony/http-foundation (v4.4.42)
- Downloading symfony/http-client-contracts (v1.1.12)
- Downloading symfony/event-dispatcher-contracts (v1.1.12)
- Downloading symfony/event-dispatcher (v4.4.42)
- Downloading symfony/debug (v4.4.41)
- Downloading symfony/error-handler (v4.4.41)
- Downloading symfony/http-kernel (v4.4.42)
- Downloading symfony/finder (v4.4.41)
- Downloading psr/container (1.0.0)
- Downloading symfony/service-contracts (v1.1.12)
- Downloading symfony/console (v4.4.42)
- Downloading symfony/polyfill-iconv (v1.25.0)
- Downloading doctrine/lexer (1.2.3)
- Downloading swiftmailer/swiftmailer (v6.3.0)
- Downloading opis/closure (3.6.3)
- Downloading symfony/translation-contracts (v1.1.12)
- Downloading symfony/translation (v4.4.41)
- Downloading nesbot/carbon (2.58.0)
- Downloading monolog/monolog (1.27.0)
- Downloading league/flysystem (1.0.70)
- Downloading jakub-onderka/php-console-color (v0.2)
- Downloading nikic/php-parser (v4.13.2)
- Downloading jakub-onderka/php-console-highlighter (v0.4)
- Downloading filp/whoops (2.14.5)
- Downloading nunomaduro/collision (v3.1.0)
- Downloading webmozart/assert (1.9.1)
- Downloading phpdocumentor/reflection-common (2.1.0)
- Downloading phpdocumentor/type-resolver (1.0.1)
- Downloading phpdocumentor/reflection-docblock (4.3.4)
- Downloading sebastian/exporter (3.1.4)
- Downloading phpunit/php-file-iterator (2.0.5)
- Downloading theseer/tokenizer (1.1.3)
- Downloading doctrine/instantiator (1.4.1)
- Downloading phpspec/prophecy (v1.10.3)
- Downloading myclabs/deep-copy (1.11.0)
0/48 [>---------------------------] 0%
5/48 [==>-------------------------] 10%
6/48 [===>------------------------] 12%
7/48 [====>-----------------------] 14%
8/48 [====>-----------------------] 16%
9/48 [=====>----------------------] 18%
10/48 [=====>----------------------] 20%
12/48 [=======>--------------------] 25%
13/48 [=======>--------------------] 27%
14/48 [========>-------------------] 29%
16/48 [=========>------------------] 33%
17/48 [=========>------------------] 35%
18/48 [==========>-----------------] 37%
20/48 [===========>----------------] 41%
23/48 [=============>--------------] 47%
24/48 [==============>-------------] 50%
29/48 [================>-----------] 60%
30/48 [=================>----------] 62%
34/48 [===================>--------] 70%
38/48 [======================>-----] 79%
40/48 [=======================>----] 83%
43/48 [=========================>--] 89%
44/48 [=========================>--] 91%
46/48 [==========================>-] 95%
47/48 [==============以上是关于PHP7.3.4版本切换到PHP7.1.9版本运行Laravel的主要内容,如果未能解决你的问题,请参考以下文章