resolve npm install errors