Could you please try run npm install --no-optional ? It fixed the issue for others. Error when Build Bahmni EMR UI
npm install --no-optional