Downgrade your node version from 23 to 18
I have switched to v18.17.1 (npm v9.6.7) this and installed npm install -g eas-cli
Now the error is gone and this command executes flawlessly. npx eas build -p android --profile preview