I am working on a project and tried to install firebase package using:
composer require kreait/laravel-firebase
But it returns different errors:
Using version ^4.1 for kreait/laravel-firebase
./composer.json has been updated
Running composer update kreait/laravel-firebase
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- lcobucci/jwt[4.1.5, ..., 4.2.x-dev] require ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension.
- kreait/laravel-firebase 4.1.0 requires kreait/firebase-php ^6.0 -> satisfiable by kreait/firebase-php[6.0.0, ..., 6.x-dev].
- kreait/firebase-php[6.0.0, ..., 6.x-dev] require lcobucci/jwt ^4.1 -> satisfiable by lcobucci/jwt[4.1.0, ..., 4.2.x-dev].
- Root composer.json requires kreait/laravel-firebase ^4.1 -> satisfiable by kreait/laravel-firebase[4.1.0].
To enable extensions, verify that they are enabled in your .ini files:
- D:\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-sodium` to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require kreait/laravel-firebase:*" to figure out if any version is installable, or "composer require kreait/laravel-firebase:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
How can i fix this problem?. Is there any solution for this?
You need to install/activate sodium goto, D:\xampp\php\ and open file php.ini.
Now search for sodium
You will see ;extension=sodium
Remove semi colon ; and save file.
Now reload apache, and run the composer again.
For me, I just follow this steps.
step 1.
At first, You need to install/activate sodium goto D:\xampp\php\ and open file php.ini.
Now search for sodium
You will see ;extension=sodium
Remove semi colon ; and save file.
Now reload apache, and run the composer again.
Step 2.
Delete composer.lock file
composer require kreait/laravel-firebase --with-all-dependencies
The answer by Murad Ali worked for me. The only change was I accessed the php.ini file via Xamp the windows app. To edit go to config then select php.ini from the list and edit from there. Scroll to Line 953
the php.ini file
xamp server screen and
Related
I'm working to install Magento 2 on my Mac so I can develop with JetBrains PhpStorm and exchange with my company's server.
I've got MAMP installed and but in working to install Magento 2.3.5-p1, I needs some php extensions set and I'm not certain how to do this.
I need intl, ext-zip and possibly others on. This is what I'm seeing:
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.5-p1
Creating a "magento/project-community-edition=2.3.5-p1" project at "./project-community-edition"
Installing magento/project-community-edition (2.3.5-p1)
Installing magento/project-community-edition (2.3.5-p1): Extracting archive
Created project in /Applications/MAMP/htdocs/project-community-edition
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 magento/product-community-edition 2.3.5-p1 -> satisfiable by magento/product-community-edition[2.3.5-p1].
- magento/product-community-edition 2.3.5-p1 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
Problem 2
- Root composer.json requires dealerdirect/phpcodesniffer-composer-installer ^0.5.0 -> satisfiable by dealerdirect/phpcodesniffer-composer-installer[v0.5.0].
- dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- magento/magento2-functional-testing-framework[2.6.4, ..., 2.6.6] require php-webdriver/webdriver ^1.8.0 -> satisfiable by php-webdriver/webdriver[1.8.0, ..., 1.10.0].
- php-webdriver/webdriver[1.8.0, ..., 1.10.0] require ext-zip * -> it is missing from your system. Install or enable PHP's zip extension.
- Root composer.json requires magento/magento2-functional-testing-framework ~2.6.4 -> satisfiable by magento/magento2-functional-testing-framework[2.6.4, 2.6.5, 2.6.6].
You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
Thanks.
For user profile I want to create profile picture, but when I write composer require intervention/image in terminal I get this error:
- intervention/image 2.4.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- intervention/image 2.4.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for intervention/image ^2.4 -> satisfiable by intervention/image[2.4.0, 2.4.1].
To enable extensions, verify that they are enabled in your .ini files:
- C:\AppServ\php5\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
Read what Composer suggests. Just install the PHP extenion fileinfo. Check the installation guide on PHP.net: http://php.net/manual/en/fileinfo.installation.php
Make sure you have the php_fileinfo.dll in your php/ext folder. Then uncomment this line in your php.ini
extension=php_fileinfo.dll
I am trying to install a push-notification library for codeigniter using composer fromhere .But when i do run a command it throws this error -> Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for wrep/notificato ^1.2 -> satisfiable by wrep/notificato[1.2.0].
- wrep/notificato 1.2.0 requires ext-sockets * -> the requested PHP extension sockets is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
- E:\xampp\php\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
I also did commented the php.ini extension=php_intl.dll and also its the same error occuring. How can i solve this?
Just working my way through the Userfrosting 4 tutorial. The basic app is up and running and am now creating the first sprinkle under "Your First UserFrosting Site".
On running composer update I get the following:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- userfrosting/config dev-master requires userfrosting/support ^4.0.0 -> no matching package found.
- userfrosting/config dev-master requires userfrosting/support ^4.0.0 -> no matching package found.
- Installation request for userfrosting/config dev-master -> satisfiable by userfrosting/config[dev-master].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
I've replaced my code with the copied / pasted code from the tutorial and still get the errors. I've absolutely no idea where to go from here - any pointers would be appreciated.
Make sure you have the latest version (4.0.11-alpha as of now) since the component versioning was changed/fixed in a recent version.
The core composer.json file shoudn't use the dev-master version of userfrosting/config component anymore, but one of the 4.0.x version. See : https://github.com/userfrosting/UserFrosting/blob/master/app/sprinkles/core/composer.json#L31. If you have a custom ^composer.json` file in your sprinkle, you don't need to add the packages define in the core composer file again.
That being said, if you're still having some issues, you can try running composer clear-cache as composer might have cached some outdated info.
I am trying to pull in Swipestripe using composer using the following command as per their instructions: http://swipestripe.com/dev/docs/swipestripe/en/Basics/Install
composer require swipestripe/swipestripe:2.1.*#dev
I am getting this:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- swipestripe/swipestripe 2.1.x-dev requires silverstripe/payment 1.0.* -> no matching package found.
- swipestripe/swipestripe 2.1.0 requires silverstripe/payment 1.0.* -> no matching package found.
- Installation request for swipestripe/swipestripe 2.1.*#dev -> satisfiable by swipestripe/swipestripe[2.1.0, 2.1.x-dev].
I have tried to require just the silverstripe/payment module 2 ways, both don't work.
composer require "silverstripe/payment:1.0"
and
composer require "silverstripe-labs/silverstripe-payment:1.0"
What am I doing wrong?
According to packagist.org/packages/silverstripe/payment#1.0.x-dev there is a 1.0.x dev branch.
The according command is:
composer require silverstripe/payment:1.0.x-dev