Hi,
After trying with docker I’ve decided to try with Vagrant.
Then I typed:
vagrant up vagrant ssh -c ‘composer install’
The laminas files began to download but the process crashes with this message
PHP Fatal error: Uncaught Error: Class ‘Laminas\ComponentInstaller\Injector\InjectorInterface’ not found in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:205
Stack trace:
#0 phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php(62): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage), true)
#1 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(173): Composer\Installer\PluginInstaller->install(Object(Composer\Repository\InstalledFilesystemRepository), Object(Composer\Package\CompletePackage))
#2 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(160): Composer\Installer\InstallationManager->install(Object(Composer\Repository\InstalledFilesystemRepository), Object(Composer\DependencyResolver\Operation\InstallOperation))
#3 phar:///usr/local/bin/composer/src/Composer/Installer.php(597): Composer\Installer\InstallationManager->execute(Object(Composer\Repository\InstalledFilesystemRepository), Object in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php on line 205
Fatal error: Uncaught Error: Class ‘Laminas\ComponentInstaller\Injector\InjectorInterface’ not found in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php:205
Stack trace:
#0 phar:///usr/local/bin/composer/src/Composer/Installer/PluginInstaller.php(62): Composer\Plugin\PluginManager->registerPackage(Object(Composer\Package\CompletePackage), true)
#1 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(173): Composer\Installer\PluginInstaller->install(Object(Composer\Repository\InstalledFilesystemRepository), Object(Composer\Package\CompletePackage))
#2 phar:///usr/local/bin/composer/src/Composer/Installer/InstallationManager.php(160): Composer\Installer\InstallationManager->install(Object(Composer\Repository\InstalledFilesystemRepository), Object(Composer\DependencyResolver\Operation\InstallOperation))
#3 phar:///usr/local/bin/composer/src/Composer/Installer.php(597): Composer\Installer\InstallationManager->execute(Object(Composer\Repository\InstalledFilesystemRepository), Object in phar:///usr/local/bin/composer/src/Composer/Plugin/PluginManager.php on line 205
To continue with the installation I had to intall the package manualy
$ vagrant ssh
$ composer global require laminas/laminas-component-installer
And then continue with the instllation as so:
$ composer install
And then it works as aspected
Thanks,
Sergi Garcia Besora