Fix frequent and intermintent build errors during npm install

See https://github.com/npm/npm/issues/6238 for more info