I recently update my Mac OS to Catalina 10.15.
I ran nmap
I kept getting
-bash: /usr/local/bin/nmap: Bad CPU type in executable
I've tried reinstalling it
brew uninstall nmap
brew install nmap
but I see no effect, I even try full path
⚡️ Desktop which nmap
/usr/local/bin/nmap
⚡️ Desktop /usr/local/bin/nmap
-bash: /usr/local/bin/nmap: Bad CPU type in executable
⚡️ Desktop
file /usr/local/bin/nmap
? Get the 64bit version if you detect a Mach-O executable i386./usr/local/bin/nmap: Mach-O 64-bit executable x86_64
brew reinstall --verbose nmap
and are you sure you don’t have another binary in your $PATH