I'm trying to create a laravel app on shopify but when I tried to run the command
composer require osiset/laravel-shopify
it returns error, the error says:
Problem 1
Root composer.json requires osiset/laravel-shopify ^17.1 -> satisfiable by osiset/laravel-shopify[v17.1.0, 17.1.x-dev].
osiset/laravel-shopify[v17.1.0, ..., 17.1.x-dev] require laravel/framework ^7.0 || ^8.0 -> found laravel/framework[v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.2).
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require osiset/laravel-shopify:*" to figure out if any version is installable, or "composer require osiset/laravel-shopify:^2.1" if you know which you need.
thank you for helping me
Try this command
composer create-project laravel/laravel example-app "8.*"
Related
I have tried to install composer require maatwebsite/excel and I have tried several times but still getting errors and I'm using laravel 9.23.0 and PHP v8.0.5 here is the error.
Using version ^3.1 for maatwebsite/excel
./composer.json has been updated
Running composer update maatwebsite/excel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- maatwebsite/excel[3.1.36, ..., 3.1.x-dev] require phpoffice/phpspreadsheet ^1.18 -> satisfiable by phpoffice/phpspreadsheet[1.18.0, ..., 1.24.1].
- maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php version (8.0.5) does not satisfy that requirement.
- maatwebsite/excel[3.1.26, ..., 3.1.35] require illuminate/support 5.8.*|^6.0|^7.0|^8.0 -> found illuminate/support[v5.8.0, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it
conflicts with another require.
- phpoffice/phpspreadsheet[1.18.0, ..., 1.24.1] require ext-gd * -> it is missing from your system. Install or enable PHP's
gd extension.
- Root composer.json requires maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.1.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-gd to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require maatwebsite/excel:*" to figure out if any version is installable, or "composer require maatwebsite/excel:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
According to docs the requirements are:
PHP: ^7.2\|^8.0
Laravel: ^5.8|^6.0|^7.0|^8.0
PhpSpreadsheet: ^1.21
psr/simple-cache: ^1.0
PHP extension php_zip enabled
PHP extension php_xml enabled
PHP extension php_gd2 enabled
PHP extension php_iconv enabled
PHP extension php_simplexml enabled
PHP extension php_xmlreader enabled
PHP extension php_zlib enabled
Go to the php.ini file by you xampp console. Search this ;extension=gd and remove ; then restart the server.
Check if the other php extension are enabled to.
As the error message mentioning it the PHP GD extension is missing on your system.
Google for install php gd for you system windows, mac, linux and follow the installation instructions.
For linux it will be:
sudo apt-get install php8.0-gd
If you are using a docker container, then you can use the following:
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions gd
After the gd extension is installed try to install the package again. If it fails check if there is another package missing and install it in a similar way.
Hello guys i try to use Laravel notification package But When I Run This command in terminal
composer require marjose/laravel-bootstrap-notify
Here I Have This Error
C:\xampp\htdocs\EShop>composer require marjose/laravel-bootstrap-notify
Using version ^1.0 for marjose/laravel-bootstrap-notify
./composer.json has been updated
Running composer update marjose/laravel-bootstrap-notify
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires marjose/laravel-bootstrap-notify ^1.0 -> satisfiable by marjose/laravel-bootstrap-notify[v1.0.0].
- marjose/laravel-bootstrap-notify v1.0.0 requires illuminate/contracts ~6.0|~7.0|~8.0 -> found illuminate/contracts[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-de
v] but these were not loaded, likely because it conflicts with another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require marjose/laravel-bootstrap-notify:*" to figure out if any version is installable
, or "composer require marjose/laravel-bootstrap-notify:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I Try to use These Commands But Doesn't Work
composer require marjose/laravel-bootstrap-notify:*
composer require marjose/laravel-bootstrap-notify:^2.1"
I'm using laravel 9.5 version and I wish to use the Auth0 to secure my API. Once, I enter the composer require auth0/login then I get failed with this error
Problem 1
- Root composer.json requires auth0/login ^6.5 -> satisfiable by auth0/login[6.5.0, 6.x-dev].
- auth0/login[6.5.0, ..., 6.x-dev] require illuminate/support ^6.0 || ^7.0 || ^8.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with
another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require auth0/login:*" to figure out if any version is installable, or "composer require auth0/login:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PS C:\xampp\htdocs\api> composer require auth0/login
Using version ^6.5 for auth0/login
./composer.json has been updated
Running composer update auth0/login
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires auth0/login ^6.5 -> satisfiable by auth0/login[6.5.0, 6.x-dev].
- auth0/login[6.5.0, ..., 6.x-dev] require illuminate/support ^6.0 || ^7.0 || ^8.0 -> found illuminate/support[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with
another require.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require auth0/login:*" to figure out if any version is installable, or "composer require auth0/login:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content
I have php verison "PHP 7.4.27", composer version "2.2.4" and laravel version"4.2.9". And my error messages:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires laravelista/comments ^4.5 ->
satisfiable by laravelista/comments[4.5.0].
- laravelista/comments 4.5.0 requires illuminate/database ^8.0 ->
found illuminate/database[v8.0.0, ..., v8.79.0] but these were not loaded, likely because it
conflicts with another require.
You can also try re-running composer require with an explicit version constraint,
e.g. "composer require laravelista/comments:*" to figure out if any version is installable, or
"composer require laravelista/comments:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
when I want to composer install srmklive/paypal using composer require srmklive/paypal, I get the error like belok:
Problem 1
- srmklive/paypal[v3.0, ..., 3.0.10] require guzzlehttp/guzzle ~7.0 -> found guzzlehttp/guzzle[7.0.0, ..., 7.4.1] but it conflicts with your root composer.json require (^6.3).
- Root composer.json requires srmklive/paypal ^3.0 -> satisfiable by srmklive/paypal[v3.0, ..., 3.0.10].
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Does anyone know how to solve it?
change in composer.json
"guzzlehttp/guzzle": "^6.3|^7.0.1",
Then update composer
We have resolved this issue with the below commands.
composer require srmklive/paypal --with-all-dependencies
Thanks