For this error case above, is the owner and group the default user!?
What do you get when you run this - here’s mine for eg
frappe@ubuntu:~$ ls -al . | grep -e .npm -e .config
drwx------ 4 frappe frappe 4096 May 31 14:12 .config
drwxr-xr-x 488 frappe frappe 20480 May 31 14:13 .npm
This case is similar, and uses chown to fix ownership
This suggests [FIXED] Yarn error on bench update - #19 by netchampfaris
the fix below:
sudo npm install -g yarn
bench update --requirements
bench setup socketio
bench build