"rake aborted!" op "sudo bundle exec rake db:create" commando (macOS M1)

My guess is it probably database service isn’t running. Thus I would suggest to check that Psql is configured and running