[magdev@cp www]$ composer require zepgram/module-disable-search-engine
./composer.json has been updated
Running composer update zepgram/module-disable-search-engine
Loading composer repositories with package information
In Laminas\DependencyPlugin\DependencyRewriterV2::onPrePoolCreate
Updating dependencies
Lock file operations: 1 install, 0 updates, 4 removals
- Removing magento/module-elasticsearch (101.0.5)
- Removing magento/module-elasticsearch-6 (100.4.5)
- Removing magento/module-elasticsearch-7 (100.4.5)
- Removing magento/module-inventory-elasticsearch (1.2.2)
- Locking zepgram/module-disable-search-engine (0.2.2)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 1 update, 4 removals
- Downloading aws/aws-sdk-php (3.304.5)
- Downloading zepgram/module-disable-search-engine (0.2.2)
- Removing magento/module-inventory-elasticsearch (1.2.2)
- Removing magento/module-elasticsearch-7 (100.4.5)
- Removing magento/module-elasticsearch-6 (100.4.5)
- Removing magento/module-elasticsearch (101.0.5)
- Upgrading aws/aws-sdk-php (3.304.4 => 3.304.5): Extracting archive
- Installing zepgram/module-disable-search-engine (0.2.2): Extracting archive
- Installing nathanjosiah/magento2-layout-debugger (dev-master 5b2128e): Extracting archive
Removing Magento/InventoryElasticsearch
Removing Magento/Elasticsearch7
Removing Magento/Elasticsearch6
Removing Magento/Elasticsearch
Package facebook/facebook-for-magento2 is abandoned, you should avoid using it. Use meta/meta-for-magento2 instead.
Package fgrosse/phpasn1 is abandoned, you should avoid using it. No replacement was suggested.
Package laminas/laminas-zendframework-bridge is abandoned, you should avoid using it. No replacement was suggested.
Package mageplaza/module-cron-schedule is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package php-cs-fixer/diff is abandoned, you should avoid using it. No replacement was suggested.
Package sebastian/phpcpd is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
128 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
PHP CodeSniffer Config installed_paths set to ../../ampersand,../../magento/magento-coding-standard,../../phpcompatibility/php-compatibility
Found 5 security vulnerability advisories affecting 2 packages.
Run "composer audit" for a full list of advisories.
Using version ^0.2.2 for zepgram/module-disable-search-engine
[magdev@cp www]$
[magdev@cp www]$ bin/magento module:enable Zepgram_DisableSearchEngine
The following modules have been enabled:
- Zepgram_DisableSearchEngine
To make sure that the enabled modules are properly registered, run 'setup:upgrade'.
Cache cleared successfully.
Generated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes.
Info: Some modules might require static view files to be cleared. To do this, run 'module:enable' with the --clear-static-content option to clear them.
The setup:upgrade command worked fine.
I also tried to dump the autoload in composer, but the error persists.