sudo npm install --unsafe-perm=true -g now or sudo npm config set unsafe-perm true #Please note that –unsafe-perm removed in v6.11.0