npm install error handling