Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Root composer.json requires php ^7.2.5 but your php version (8.0.3) does not satisfy that require


It's becouse in your project in composer.json file you have:

"require": {
    "php": ">=7.3",
    .....
},
Try to update this requirement to:

"require": {
    "php": "^7.3|^8.0",
    .....
},
Comment

- root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement.

It's becouse in your project in composer.json file you have:

"require": {
    "php": ">=7.3",
    .....
},
Try to update this requirement to:

"require": {
    "php": "^7.3|^8.0",
    .....
},
Comment

- root composer.json requires php ^7.2 but your php version (8.0.1) does not satisfy that requirement.

Your project using php7.2 version and composer installed with 8.0.1.
Update your composer with php 7.2 instead 8.0.1. problem will solve.
Comment

root composer.json requires php ^7.3 but your php version (8.0.3) does not satisfy that requirement.

  "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",

    },
Comment

root composer.json requires php ^7.1.3 but your php version (8.0.3) does not satisfy that requirement.

On Mac using Home Brew, you can switch php versions easily:
brew unlink php@8.0
brew link php@7.1

Or follow the upgrade path to get your app to support the newer php version
Comment

root composer.json requires php ^7.1.3 but your php version (8.0.1) does not satisfy that requirement.

for windows 
download php version you require
https://www.php.net/releases/index.php
then in variable environment of windows, edit PATH key, find php and update path to your new php version(after extract)

for ubuntu/linux
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1

then if in future you want to switch between your php versions, 
sudo update-alternatives --config php
Comment

PREVIOUS NEXT
Code Example
Php :: your requirements could not be resolved to an installable set of packages. composer 
Php :: wp_dequeue_style 
Php :: laravel ui auth 
Php :: how to find datatype of a variable in php 
Php :: drupal 8 get all nodes of type 
Php :: array to string php 
Php :: smarty prestashop get language 
Php :: migration not found laravel 
Php :: php remove non numeric 
Php :: php time format am pm 
Php :: get information from another website 
Php :: debug wordpress errors 
Php :: php iterate folder 
Php :: php explode trim 
Php :: if any comma in string in php 
Php :: var_dump _post php 
Php :: php 3 months ago 
Php :: how get last item in foreach in laravel 
Php :: hide .php from url .htaccess 
Php :: laravel search data relationship 
Php :: npm watch laravel 
Php :: get last 30 days records in laravel 
Php :: call seeder laravel 
Php :: datetime to string php 
Php :: print session in laravel 
Php :: 19 hours from now php 
Php :: get acf repeater field 
Php :: php myadmin reset auto incremente 
Php :: attach multiple files in laravel mailable 
Php :: get today date magento 2 object manager 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =