Skip to content

setup upgrade get the area code is not set error

After I use composer to install a new extension, I was trying to run bin/magento setup:upgrade
but it throws this error “Area code is not set”

I am running Magento 2.4.3-p1

I did google but did not find any result. It just happen suddenly.

Please help
enter image description here