agungsugiarto / codeigniter4-cors

The codeigniter4-cors package allows you to send Cross-Origin Resource Sharing headers with Codeigniter4 filter configuration.
MIT License
65 stars 14 forks source link

Unable to install the package #4

Closed ypkkhatri closed 1 year ago

ypkkhatri commented 3 years ago
$ composer require agungsugiarto/codeigniter4-cors --ignore-platform-reqs
Using version ^2.0 for agungsugiarto/codeigniter4-cors
./composer.json has been updated
Running composer update agungsugiarto/codeigniter4-cors
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 agungsugiarto/codeigniter4-cors ^2.0 -> satisfiable by agungsugiarto/codeigniter4-cors[v2.0.0].
    - agungsugiarto/codeigniter4-cors v2.0.0 requires codeigniter4/framework ^4.1 -> satisfiable by codeigniter4/framework[v4.1.0, v4.1.1, v4.1.2, v4.1.3] from composer repo (https://repo.packagist.org) but codeigniter4/framework is the root package and cannot be modified. See https://getcomposer.org/dep-on-root for details and assistance.

Installation failed, reverting ./composer.json to its original content.

Codeigniter 4.1.3

CodeIgniter v4.1.3 Command Line Tool - Server Time: 2021-09-06 10:27:32 UTC-05:00

CodeIgniter development server started on http://localhost:8080
CaioCoelhoChaves commented 3 years ago

Same problem here

AnwarQasem commented 3 years ago

@ypkkhatri @CaioCoelhoChaves ... add "version": "4.1.4" ( where 4.1.4 is the version of codeigniter) into your composer.json.

AngelPestana commented 2 years ago

@ypkkhatri tengo el mismo detalle, pudiste instalarlo?

ypkkhatri commented 2 years ago

I will check and get back

demyr17 commented 2 years ago

Still going on with new versions of CI

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 agungsugiarto/codeigniter4-cors:*" to figure out if any version is installable, or "composer require agungsugiarto/codeigniter4-cors:^2.1" if you know which you need.

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

cijagani commented 2 years ago

Use composer install -w

Or

composer install -W

cijagani commented 2 years ago

--with-dependencies (-w): Update also dependencies of packages in the argument list, except those which are root requirements.

--with-all-dependencies (-W): Update also dependencies of packages in the argument list, including those which are root requirements.

demyr17 commented 2 years ago

composer install -w

this is not working, saying: The "-w" option does not exist.

AngelPestana commented 2 years ago

@AnwarQasem me funciono la solucion que proporcionaste, agregar al archivo composer.json lo siguiente "version": "la version del codeigniter que tienen" y listo!!

cijagani commented 2 years ago

@demyr17 can you try this?

composer require agungsugiarto/codeigniter4-cors -w

seems you are using very old version of CI4. latest one is 4.2.10

agungsugiarto commented 1 year ago

already fixed with last version v3.x