Both surface-enhanced Raman spectroscopy (SERS) and tip-enhanced Raman spectroscopy (TERS) are widely used for the investigation of nanoscale materials. One of the most critical aspects of both SERS and TERS is the control of both the plasmon and molecular resonance precisely. Here, we demonstrate single-molecule TERS under molecular resonance conditions using a scanning tunneling microscope. This was achieved by placing the molecule on a sodium chloride (NaCl) film in order to directly compare the absorption with Raman excitation spectra. Varying the NaCl film thickness changes the degree of screening effect from the metal surface, which leads to a variation of the molecular resonance phenomena. Although it is generally accepted that the target molecule should be directly attached to the metal surface in SERS, our observation using TERS suggests that this is not always optimal, especially under molecular resonance Raman conditions. Our work demonstrates the possibility of controlling molecular resonance by carefully modifying the local environment. This will be useful for future investigation of isolated single molecules or even two-dimensional molecular assemblies.