Use npm config instead of editing rc files directly.