SiavashBamshadnia / Laravel-Source-Encrypter

Laravel and Lumen Source Code Encrypter
MIT License
548 stars 126 forks source link

Your requirements could not be resolved to an installable set of packages. #22

Closed SiavashBamshadnia closed 2 years ago

SiavashBamshadnia commented 2 years ago

Your requirements could not be resolved to an installable set of packages.

Problem 1

You can also try re-running composer require with an explicit version constraint, e.g. "composer require sbamtr/laravel-source-encrypter:*" to figure out if any version is installable, or "composer require sbamtr/laravel-source-encrypter:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Originally posted by @aashishtimalsina in https://github.com/SiavashBamshadnia/Laravel-Source-Encrypter/issues/7#issuecomment-1237686972

SiavashBamshadnia commented 2 years ago

Hi. Please see this link:

https://stackoverflow.com/questions/29318709/how-can-i-resolve-your-requirements-could-not-be-resolved-to-an-installable-set

hanifhefaz commented 2 years ago

@SiavashBamshadnia It doesn't work for me please show the correct way if you can. the solutions in above link don't work for me.

SiavashBamshadnia commented 2 years ago

Please upload your composer.json file here.

hanifhefaz commented 2 years ago

ok. so the solution is if you put the exact version in the composer.json, then it works.