Use Zerbea tools for WPA related tasks like this one, https://github.com/ZerBea/hcxtools
cap2hccapx is now deprecated.
Quote:hcxpcaptool : Shows info of pcap/pcapng file and convert it to other hashformats accepted by hashcat and John the Ripper
cap2hccapx is now deprecated.