Based on your log errors, i can see that is EACCES permissions errors
As the npm package documentation suggest, try to manually npm default directory, you can follow the steps mentioned in this document:
So even if you do not get your issue resolved after changing directory manually, taking a look at these source should help you out:
Hope these will help you fix installing the packages globally.