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. – klanomath Jan 17 '20 at 02:47/usr/local/bin/nmap: Mach-O 64-bit executable x86_64– code-8 Jan 17 '20 at 02:51brew reinstall --verbose nmapand are you sure you don’t have another binary in your $PATH – bmike Jan 17 '20 at 02:56.dmgfrom the site, seems working now. – code-8 Jan 17 '20 at 02:56