zsh : command not found: pod

When i try to install podfiles after this command $ sudo gem install cocoapods its getting zsh command not found mac OS 13.4

i try some commands but no luck $ sudo gem install -n /usr/local/bin cocoapods $ sudo gem install cocoapods -V $ gem update --system