You should not run this command as root and neither able to install bench without root getting permission error

I had a similar experience in my case I determined a ‘bad’ install artifact /home/frappe/.local bench.utils.CommandFailedError: npm install - #40 by clarkej