There are two ways of avoiding this. You can use a solvent such as tetrachloromethane, CCl4, which doesn't contain any hydrogen, or you can use a solvent in which any ordinary hydrogen atoms are replaced by its isotope, deuterium - for example, CDCl3 instead of CHCl3. All the NMR spectra used on this site involve CDCl3 as the solvent.