I ran the 'php bin/magento setup:upgrade' command and received this error. Can you tell why the command line shows this error? I am new to Magento 2 and had previous experience with Magento 1.
2 Answers
Please use the below commands and check:
rm -rf var/* generation/*
bin/magento setup:upgrade
Also check your permission to var and generation folder.
I am not sure but var/di
folder created by default when we run bin/magento setup:di:compile
.
In your case plaese run the bin/magento setup:di:compile
and check the var/di
folder.
var
folder. All other folders had been created, but this one shows warning when running the commandsetup:upgrade