Issue with installing Cocoapods

Hi,

I’m trying to create a pod file but it was unsuccessful. I installed Cocoapods before that and although it says it was successfully installed it still says command not found when I checked it with “pod --version”. Are there any advice to fix this?

Thank you in advance!

I had a nightmare installing cocoapods on my MBP (was fine on my Air) until I read this: Install Ruby on Mac. The Definitive Guide for 2023.