magento2 – Class NewRelicMonologEnricherHandler does not exist


I just reinstalled magento using composer install

Then I tried to run this command php bin/magento setup:upgrade and also tried running other setup commands.
I got the following error:

Class NewRelicMonologEnricherHandler does not exist#0 /vagrant/www/vendor/magento/framework/Code/Reader/ClassReader.php(26): ReflectionClass->__construct('NewRelic\Monolo...')
#1 /vagrant/www/vendor/magento/framework/ObjectManager/Definition/Runtime.php(54): MagentoFrameworkCodeReaderClassReader->getConstructor('NewRelic\Monolo...')
#2 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(48): MagentoFrameworkObjectManagerDefinitionRuntime->getParameters('NewRelic\Monolo...')
#3 /vagrant/www/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('NewRelic\Monolo...')
#4 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(203): MagentoFrameworkObjectManagerObjectManager->get('NewRelic\Monolo...')
#5 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(179): MagentoFrameworkObjectManagerFactoryAbstractFactory->parseArray(Array)
#6 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(273): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, NULL, Array, 'handlers', 'Magento\CloudCo...')
#7 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): MagentoFrameworkObjectManagerFactoryAbstractFactory->getResolvedArgument('Magento\CloudCo...', Array, Array)
#8 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\CloudCo...', Array, Array)
#9 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\CloudCo...', Array, Array)
#10 /vagrant/www/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\CloudCo...')
#11 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(167): MagentoFrameworkObjectManagerObjectManager->get('Magento\CloudCo...')
#12 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(273): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, 'Psr\Log\LoggerI...', NULL, 'logger', 'Magento\CloudCo...')
#13 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): MagentoFrameworkObjectManagerFactoryAbstractFactory->getResolvedArgument('Magento\CloudCo...', Array, Array)
#14 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\CloudCo...', Array, Array)
#15 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\CloudCo...', Array, Array)
#16 /vagrant/www/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\CloudCo...')
#17 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(167): MagentoFrameworkObjectManagerObjectManager->get('Magento\CloudCo...')
#18 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(273): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgument(Array, 'Magento\Framewo...', NULL, 'logger', 'Magento\Framewo...')
#19 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(236): MagentoFrameworkObjectManagerFactoryAbstractFactory->getResolvedArgument('Magento\Framewo...', Array, Array)
#20 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(34): MagentoFrameworkObjectManagerFactoryAbstractFactory->resolveArgumentsInRuntime('Magento\Framewo...', Array, Array)
#21 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(59): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->_resolveArguments('Magento\Framewo...', Array, Array)
#22 /vagrant/www/vendor/magento/framework/ObjectManager/ObjectManager.php(56): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...', Array)
#23 /vagrant/www/vendor/magento/framework/App/Cache/Frontend/Factory.php(197): MagentoFrameworkObjectManagerObjectManager->create('Magento\Framewo...', Array)
#24 /vagrant/www/vendor/magento/framework/App/Cache/Frontend/Factory.php(161): MagentoFrameworkAppCacheFrontendFactory->_applyDecorators(Object(MagentoFrameworkCacheFrontendDecoratorTagScope))
#25 /vagrant/www/vendor/magento/framework/App/Cache/Frontend/Pool.php(69): MagentoFrameworkAppCacheFrontendFactory->create(Array)
#26 /vagrant/www/vendor/magento/framework/App/Cache/Frontend/Pool.php(151): MagentoFrameworkAppCacheFrontendPool->_initialize()
#27 /vagrant/www/vendor/magento/framework/App/Cache.php(38): MagentoFrameworkAppCacheFrontendPool->get('default')
#28 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): MagentoFrameworkAppCache->__construct(Object(MagentoFrameworkAppCacheFrontendPool))
#29 /vagrant/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(66): MagentoFrameworkObjectManagerFactoryAbstractFactory->createObject('Magento\Framewo...', Array)
#30 /vagrant/www/vendor/magento/framework/ObjectManager/ObjectManager.php(70): MagentoFrameworkObjectManagerFactoryDynamicDeveloper->create('Magento\Framewo...')
#31 /vagrant/www/vendor/magento/framework/App/Cache/Proxy.php(44): MagentoFrameworkObjectManagerObjectManager->get('Magento\Framewo...')
#32 /vagrant/www/vendor/magento/framework/App/Cache/Proxy.php(67): MagentoFrameworkAppCacheProxy->_getCache()
#33 /vagrant/www/vendor/magento/framework/App/ProductMetadata.php(80): MagentoFrameworkAppCacheProxy->load('mage-version')
#34 /vagrant/www/vendor/magento/framework/Console/Cli.php(98): MagentoFrameworkAppProductMetadata->getVersion()
#35 /vagrant/www/bin/magento(22): MagentoFrameworkConsoleCli->__construct('Magento CLI')
#36 {main}

Anyone has any idea on how to fix this? Thank you.