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

Before you run another install, you should remove the previous install How do I uninstall erpnext my server? - #13 by Ahmad_Moustafa