Fixed error where npm install would hang on some machines