Installation of project framework - error with laminas cache

He,

when installing a clean version of Laminas Project, I get an error at the laminas cache step (PHP 8.1).

Regards

What is the exact error message you received?

From the command line, I execute the command:

composer create-project -s dev laminas/laminas-mvc-skeleton .

And I get this:

Problem 1
    - laminas/laminas-cache[3.0.0, ..., 3.2.0] require laminas/laminas-cache-storage-implementation 1.0 -> satisfiable by
 laminas/laminas-cache-storage-adapter-apc[1.0.0, 1.0.1], laminas/laminas-cache-storage-adapter-apcu[1.0.0, 1.0.1, 1.1.0]
, laminas/laminas-cache-storage-adapter-blackhole[1.0.0, 1.1.2, 1.2.1], laminas/laminas-cache-storage-adapter-dba[1.0.0, 
1.0.1], laminas/laminas-cache-storage-adapter-ext-mongodb[1.0.0, 1.0.1, 1.2.0], laminas/laminas-cache-storage-adapter-fil
esystem[1.0.0, 1.0.1, 1.1.0, 1.1.1], laminas/laminas-cache-storage-adapter-memcache[1.0.0, 1.0.1, 1.1.0], laminas/laminas
-cache-storage-adapter-memcached[1.0.0, 1.0.1, 1.1.0, 1.2.0], laminas/laminas-cache-storage-adapter-memory[1.0.0, 1.0.1, 
1.1.0], laminas/laminas-cache-storage-adapter-mongodb[1.0.0, 1.0.1], laminas/laminas-cache-storage-adapter-redis[1.0.0, 1
.0.1, 1.2.0], laminas/laminas-cache-storage-adapter-session[1.0.0, 1.0.1, 1.1.0], laminas/laminas-cache-storage-adapter-w
incache[1.0.0, 1.0.1], laminas/laminas-cache-storage-adapter-xcache[1.0.0, 1.0.1], laminas/laminas-cache-storage-adapter-
zend-server[1.0.0, 1.0.1].
    - laminas/laminas-cache 2.0.0 requires laminas/laminas-eventmanager 2.0.0 -> found laminas/laminas-eventmanager[2.0.0
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.1 requires laminas/laminas-eventmanager 2.0.1 -> found laminas/laminas-eventmanager[2.0.1
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.2 requires laminas/laminas-eventmanager 2.0.2 -> found laminas/laminas-eventmanager[2.0.2
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.3 requires laminas/laminas-eventmanager 2.0.3 -> found laminas/laminas-eventmanager[2.0.3
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.5 requires laminas/laminas-eventmanager 2.0.5 -> found laminas/laminas-eventmanager[2.0.5
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.6 requires laminas/laminas-eventmanager 2.0.6 -> found laminas/laminas-eventmanager[2.0.6
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.7 requires laminas/laminas-eventmanager 2.0.7 -> found laminas/laminas-eventmanager[2.0.7
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.0.8 requires laminas/laminas-eventmanager 2.0.8 -> found laminas/laminas-eventmanager[2.0.8
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.0 requires laminas/laminas-eventmanager 2.1.0 -> found laminas/laminas-eventmanager[2.1.0
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.1 requires laminas/laminas-eventmanager 2.1.1 -> found laminas/laminas-eventmanager[2.1.1
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.2 requires laminas/laminas-eventmanager 2.1.2 -> found laminas/laminas-eventmanager[2.1.2
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.3 requires laminas/laminas-eventmanager 2.1.3 -> found laminas/laminas-eventmanager[2.1.3
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.4 requires laminas/laminas-eventmanager 2.1.4 -> found laminas/laminas-eventmanager[2.1.4
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.5 requires laminas/laminas-eventmanager 2.1.5 -> found laminas/laminas-eventmanager[2.1.5
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.1.6 requires laminas/laminas-eventmanager 2.1.6 -> found laminas/laminas-eventmanager[2.1.6
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.0 requires laminas/laminas-eventmanager 2.2.0 -> found laminas/laminas-eventmanager[2.2.0
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.1 requires laminas/laminas-eventmanager 2.2.1 -> found laminas/laminas-eventmanager[2.2.1
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.2 requires laminas/laminas-eventmanager 2.2.2 -> found laminas/laminas-eventmanager[2.2.2
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.3 requires laminas/laminas-eventmanager 2.2.3 -> found laminas/laminas-eventmanager[2.2.3
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.4 requires laminas/laminas-eventmanager 2.2.4 -> found laminas/laminas-eventmanager[2.2.4
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.5 requires laminas/laminas-eventmanager 2.2.5 -> found laminas/laminas-eventmanager[2.2.5
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.6 requires laminas/laminas-eventmanager 2.2.6 -> found laminas/laminas-eventmanager[2.2.6
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.7 requires laminas/laminas-eventmanager 2.2.7 -> found laminas/laminas-eventmanager[2.2.7
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.8 requires laminas/laminas-eventmanager 2.2.8 -> found laminas/laminas-eventmanager[2.2.8
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.9 requires laminas/laminas-eventmanager 2.2.9 -> found laminas/laminas-eventmanager[2.2.9
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.2.10 requires laminas/laminas-eventmanager 2.2.10 -> found laminas/laminas-eventmanager[2.2
.10] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sur
e you list it as an argument for the update command.
    - laminas/laminas-cache 2.3.0 requires laminas/laminas-eventmanager 2.3.0 -> found laminas/laminas-eventmanager[2.3.0
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.1 requires laminas/laminas-eventmanager 2.3.1 -> found laminas/laminas-eventmanager[2.3.1
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.2 requires laminas/laminas-eventmanager 2.3.2 -> found laminas/laminas-eventmanager[2.3.2
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.3 requires laminas/laminas-eventmanager 2.3.3 -> found laminas/laminas-eventmanager[2.3.3
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.4 requires laminas/laminas-eventmanager 2.3.4 -> found laminas/laminas-eventmanager[2.3.4
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.5 requires laminas/laminas-eventmanager 2.3.5 -> found laminas/laminas-eventmanager[2.3.5
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.6 requires laminas/laminas-eventmanager 2.3.6 -> found laminas/laminas-eventmanager[2.3.6
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.7 requires laminas/laminas-eventmanager 2.3.7 -> found laminas/laminas-eventmanager[2.3.7
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.8 requires laminas/laminas-eventmanager 2.3.8 -> found laminas/laminas-eventmanager[2.3.8
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.3.9 requires laminas/laminas-eventmanager 2.3.9 -> found laminas/laminas-eventmanager[2.3.9
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.0 requires laminas/laminas-eventmanager 2.4.0 -> found laminas/laminas-eventmanager[2.4.0
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.1 requires laminas/laminas-eventmanager 2.4.1 -> found laminas/laminas-eventmanager[2.4.1
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.2 requires laminas/laminas-eventmanager 2.4.2 -> found laminas/laminas-eventmanager[2.4.2
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.3 requires laminas/laminas-eventmanager 2.4.3 -> found laminas/laminas-eventmanager[2.4.3
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.4 requires laminas/laminas-eventmanager 2.4.4 -> found laminas/laminas-eventmanager[2.4.4
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.5 requires laminas/laminas-eventmanager 2.4.5 -> found laminas/laminas-eventmanager[2.4.5
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.6 requires laminas/laminas-eventmanager 2.4.6 -> found laminas/laminas-eventmanager[2.4.6
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache 2.4.7 requires laminas/laminas-eventmanager 2.4.7 -> found laminas/laminas-eventmanager[2.4.7
] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not match. Make sure y
ou list it as an argument for the update command.
    - laminas/laminas-cache[2.4.8, ..., 2.4.13] require laminas/laminas-eventmanager ~2.4.0 -> found laminas/laminas-even
tmanager[2.4.0, ..., 2.4.13] but the package is fixed to 3.10.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.
    - laminas/laminas-cache 2.5.0 requires laminas/laminas-eventmanager ~2.5.0 -> found laminas/laminas-eventmanager[2.5.
0, 2.5.1, 2.5.2] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version does not mat
ch. Make sure you list it as an argument for the update command.
    - laminas/laminas-cache[2.5.1, ..., 2.5.3] require laminas/laminas-eventmanager ~2.5 -> found laminas/laminas-eventma
nager[2.5.0, ..., 2.6.4] but the package is fixed to 3.10.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.
    - laminas/laminas-cache[2.6.0, ..., 2.7.2] require php ^5.5 || ^7.0 -> your php version (8.1.12) does not satisfy tha
t requirement.
    - laminas/laminas-cache[2.8.0, ..., 2.10.3] require php ^5.6 || ^7.0 -> your php version (8.1.12) does not satisfy th
at requirement.
    - laminas/laminas-cache-storage-adapter-zend-server[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (
8.1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-xcache[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.1
2) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-wincache[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1
.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-session[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.
12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-redis[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.12
) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-mongodb[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.
12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memory[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.1
2) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memcached[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.
1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memcache[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1
.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-filesystem[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8
.1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-ext-mongodb[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (
8.1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-dba[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.12) 
does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-blackhole[1.0.0, ..., 1.1.2] require php ^5.6 || ^7.0 -> your php version (8.
1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-apcu[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.12)
 does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-apc[1.0.0, ..., 1.0.1] require php ^5.6 || ^7.0 -> your php version (8.1.12) 
does not satisfy that requirement.
    - laminas/laminas-cache[3.3.0, ..., 3.4.0] require laminas/laminas-servicemanager ^3.11 -> found laminas/laminas-serv
icemanager[3.11.1, ..., 3.20.0] but the package is fixed to 3.10.0 (lock file version) by a partial update and that versi
on does not match. Make sure you list it as an argument for the update command.
    - laminas/laminas-cache[3.5.0, ..., 3.9.0] require laminas/laminas-servicemanager ^3.11.1 -> found laminas/laminas-se
rvicemanager[3.11.1, ..., 3.20.0] but the package is fixed to 3.10.0 (lock file version) by a partial update and that ver
sion does not match. Make sure you list it as an argument for the update command.
    - laminas/laminas-cache[2.11.0, ..., 2.13.2] require php ^7.3 || ~8.0.0 -> your php version (8.1.12) does not satisfy
 that requirement.
    - laminas/laminas-cache-storage-adapter-session 1.1.0 require php ^7.3 || ~8.0.0 -> your php version (8.1.12) does no
t satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-redis[1.1.0, ..., 1.2.0] require php ^7.3 || ~8.0.0 -> your php version (8.1.
12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memory 1.1.0 require php ^7.3 || ~8.0.0 -> your php version (8.1.12) does not
 satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memcached 1.2.0 require php ^7.3 || ~8.0.0 -> your php version (8.1.12) does 
not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memcache 1.1.0 require php ^7.3 || ~8.0.0 -> your php version (8.1.12) does n
ot satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-filesystem[1.1.0, ..., 1.1.1] require php ^7.3 || ~8.0.0 -> your php version 
(8.1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-ext-mongodb[1.1.0, ..., 1.2.0] require php ^7.3 || ~8.0.0 -> your php version
 (8.1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-blackhole[1.2.0, ..., 1.2.1] require php ^7.3 || ~8.0.0 -> your php version (
8.1.12) does not satisfy that requirement.
    - laminas/laminas-cache-storage-adapter-apcu 1.1.0 require php ^7.3 || ~8.0.0 -> your php version (8.1.12) does not s
atisfy that requirement.
    - laminas/laminas-cache-storage-adapter-memcached 1.1.0 requires php ^7.3 -> your php version (8.1.12) does not satis
fy that requirement.
    - laminas/laminas-cache 3.10.0 requires laminas/laminas-servicemanager ^3.18.0 -> found laminas/laminas-servicemanage
r[3.18.0, 3.19.0, 3.20.0] but the package is fixed to 3.10.0 (lock file version) by a partial update and that version doe
s not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires laminas/laminas-cache * -> satisfiable by laminas/laminas-cache[2.0.0, ..., 2.13.2, 3.0
.0, ..., 3.10.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to s
pecific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require laminas/laminas-
cache:*" to figure out if any version is installable, or "composer require laminas/laminas-cache:^2.1" if you know which 
you need.

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

laminas-cache cannot be selected during installation. Can you provide the full console content of the installation, for example:

31 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
19 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

        Do you want a minimal install (no optional packages)? Y/n
n

    Would you like to install the developer toolbar? y/N
n

    Would you like to install database support (installs laminas-db)? y/N
n

    Would you like to install forms support? y/N
n

I hope I can reproduce the problem then. At the moment I have no problems, everything works as expected.

Hi,

OK. I am trying again. A clean installation of the laminas framework.

And I get something like this:

Of course, I had no such problems before and the installations went smoothly. After receiving the error I have the full file structure. Maybe my message is not relevant.

Regards

Hi @Kriss_Kals,

If your problem is related to cache and cache alone. Maybe you should try changing a line in your configuration in application.config,php.

return  [
    ...
    'module_listener_options' => [
       ...
        'cache_dir' => realpath(__DIR__ . '/../') . '/data/cache/',
    ],
];