added error handling for npm call - will investigate to fix it - #40