Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/apt" (-1)?
To install AirCrack (as the author has indicated is his intent), you can either use MacPorts, Brew, or build from the source. 

Apt, Yum, Pacman, and other package managers do not exist on macOS; the closest you'll get is MacPorts or Brew.