better error log to try and understand why npm is failing