“[ErrorException] chmod(): Operation not permitted” running “composer update”

magento.stackexchange https://magento.stackexchange.com/questions/332793

  •  15-04-2021
  •  | 
  •  

سؤال

I'm running Magento 2.4.2 and I'm using Composer v2.0.11. 2 days ago, after running, as usual, composer update, I suddenly received this error:

[ErrorException]
chmod(): Operation not permitted

You can see composer update -v output down below:

enter image description here

What I tried

  • I tried to apply chmod -R 777 . and chown -R www-data:www-data .
  • I tried to apply chmod u+x bin/magento

Any ideas?

هل كانت مفيدة؟

المحلول 2

Setting the filesystem ownership to the magento user (dev in my case, while before was assigned to www-data user) fixed the problem: chown -R dev:www-data .

نصائح أخرى

For windows

rm -rf vendor && composer install

For Ubuntu

sudo rm -rf vendor && sudo composer install
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top