Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Problema installazione phpoffice/phpspreadsheet su laravel 9

    ciao!

    sto cercando di installare phpspreadsheet su unu progetto che usa laravel 9.
    codice:
    $ composer require phpoffice/phpspreadsheet
    Info from https://repo.packagist.org: #StandWithUkraine
    Using version ^1.22 for phpoffice/phpspreadsheet
    ./composer.json has been updated
    Running composer update phpoffice/phpspreadsheet
    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 phpoffice/phpspreadsheet ^1.22 -> satisfiable by phpoffice/phpspreadsheet[1.22.0].
        - phpoffice/phpspreadsheet 1.22.0 requires psr/simple-cache ^1.0 -> found psr/simple-cache[1.0.0, 1.0.1] but the package is fixed to 3.0.0 (lock file version) by a partial 
        update and that version does not match. Make sure you list it as an argument for the update command.
    
    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 phpoffice/phpspreadsheet:*" to figure out if any version is
    installable, or "composer require phpoffice/phpspreadsheet:^2.1" if you know which you need.
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    allora ho provato ad installare la versione 2.1:
    codice:
    $ composer require phpoffice/phpspreadsheet:^2.1
    ./composer.json has been updated
    Running composer update phpoffice/phpspreadsheet
    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 phpoffice/phpspreadsheet ^2.1, found phpoffice/phpspreadsheet[dev-Resolve-CF-Issues-with-Xls-Writer, ..., 
        dev-Issue-2666_Active-Sheet-Index-from-Google-Sheets, 1.0.0-beta, ..., 1.22.0] but it does not match the constraint.
    
    
    Installation failed, reverting ./composer.json and ./composer.lock to their original content.
    qualche idea su come posso fare??

  2. #2
    ok ho risolto così:
    codice:
     composer require psr/simple-cache:^1.0.1 phpoffice/phpspreadsheet

  3. #3

  4. #4
    Quote Originariamente inviata da filippo.toso Visualizza il messaggio
    ah no, non conoscevo!
    gli do un'occhiata!
    grazie!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.