Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

294
Views
Heroku detecta el compositor 1 cuando estoy usando el compositor 2

Al intentar implementar en Heroku, devuelve el siguiente error:

 ! The following is the full output from the installation attempt: ! ! > You are using Composer 1 which is deprecated. You should upgrade to Composer 2, see https://blog.packagist.com/deprecating-composer-1-support/ ! > Loading repositories with available runtimes and extensions ! > Updating dependencies ! > Your requirements could not be resolved to an installable set of packages. ! > ! > Problem 1 ! > - The requested package composer-plugin-api could not be found in any version, there may be a typo in the package name. ! >

No hay mucha información sobre cómo solucionar esto. ¿De qué otra manera debo especificar que se está utilizando el compositor 2? Todo fue instalado desde el compositor 2.

compositor.json

 { "autoload": { "psr-4": { "App\\": "app/" }, "files": [ "App/helpers.php" ] }, "require": { "vlucas/phpdotenv": "^5.4", "abraham/twitteroauth": "^3.2", "jenssegers/blade": "^1.4", "bramus/router": "^1.6", "nesbot/carbon": "^2.55", "phpfastcache/phpfastcache": "*", "php": ">=8.0" } }

compositor --versión

 Composer version 2.2.1 2021-12-22 22:21:31
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

El problema era la versión exacta del compositor, heroku funciona con la versión 2.1.14 del compositor ( https://devcenter.heroku.com/articles/php-support#installation-of-dependencies ) y mi compositor era la 2.2.1.

Lo arreglé con lo siguiente:

Eliminar composer.lock y proveedor

 composer self-update 2.1.14
 composer install
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!