The spatial distribution in high-order harmonic generation (HHG) from the asymmetric diatomic molecule HeH^{2+} is investigated by numerically solving the non-Born-Oppenheimer time-dependent Schrödinger equation (TDSE). The spatial distribution of the HHG spectra shows that there is little contribution in HHG around the geometric center of two nuclei (*z* = 1.17 a.u.) and the equilibrium internuclear position of the H nucleus (*z* = 3.11 a.u.). We demonstrate the carrier envelope phase (CEP) effect on the spatial distribution of HHG in a few-cycle laser pulse. The HHG process is investigated by the time evolution of the electronic density distribution. The time-frequency analysis of HHG from two nuclei in HeH^{2+} is presented to further explain the underlying physical mechanism.