when installing npm dependencies, fail quickly if offline