improve error message when npm fails