The paper deals with the Sturm-Liouville operator with singular potential. We assume that the potential is a sum of an a priori known distribution from a certain class and an unknown sufficiently smooth function. The inverse problem is to recover the operator using zeros of eigenfunctions (nodes) as an input data. For this inverse problem we obtain a procedure for constructing the solution.