Longitudinal waves are waves in which the displacement of the medium is in the same direction as, or the opposite direction to, the direction of propagation of the wave
Longitudinal waves travels from one point to other point by distrubing the medium. If there is no medium then there is no distribence, hence propagation of wave is not possible.
They require medium to travel