While installing the Nodejs package Browsertime, I got the following error. I tried a few things, but nothing worked. After a little bit of search, I found npmjs documentation and tried  –unsafe-perm flag. Ex: for my installation. It worked like a charm. I hope it helps you too.