Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am using 2.2.4 Magento when I ran the this command every time bin/Magento cache:flushafter. I need sudo chmod -R -v 777 generated var pub, if not it will error.
sudo chmod -R -v 777 generated var pub
how can I Solve this problem, thank you very much!!
Please try below code....
php bin/magento cache:flush && chmod 777 -R var/ pub/static generated/
but why we give permission as cache:flush reflate data into var/cache var/page_cache directory.