Fixing a composer update failure giving a "could not delete" error message
Via Mauricio Dinarte
If you get Update failed (Could not delete web/core/.nfs000000000074dd0900000001: )
the solution is
composer config --global process-timeout 6000
I was getting that error while updating drupal to 8.6 beta 2
although it can be any composer update