All are available free online from the Library of Congress.
Some of the volumes missing from the Library of Congress are online: 1886 pt. 1, 1895, 1899, and 1921.
UNC Library has many volumes of Ayer's directories, from 1930-1985 (under four different names).