I was able to fix it using yarn command instead.
yarn global add eas-cli
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: