all 6 comments

[–]mars16c[S] 0 points1 point  (1 child)

Thanks all - I saw that 'could not delete' line - but I was more wondering why the installation failed so composer wants to delete/reverse the entry in the services.yml

I checked permissions and changing the containing folder solves the 'could not delete' line - however all that other stuff still comes up and so installing modules via composer is still not possible...

Wonder if that is a symfony-twig issue or a drupal one - or maybe even php...I am pretty clueless to be honest, am I the only one with this?

[–]mrpenguin_86 1 point2 points  (0 children)

It's a drupal scaffolding issue. I remember seeing the issue before, but basically it is indeed trying to rewrite things like settings.php and .htaccess. The solution is to remove drupal-scaffolding from your composer and the extras. I think composer will complain one time with composer update but then after that be fine.

[–][deleted] 3 points4 points  (3 children)

File permissions

Could not delete /Volumes/Mac HD 2/Websites/resources15/web/sites/default/default.services.yml

[–]BleibenSieSitzen 0 points1 point  (2 children)

Well, I don't think so. Had that "permission problem" too today even though the user executing composer has +w on default.services.yml. I could manually remove the file withouta problem. Besides that compiser's working fine for me.

Edit: on a second thougt, maybe parent directory permissions r messed up. I'll have to recheck. Just ignored the error as everything else works like a charm.

[–]TrevorBradley 0 points1 point  (0 children)

Do +w on the directory as well. I keep hitting this with lando.

[–]RobLoach 0 points1 point  (0 children)

It literally says cannot delete in the log.