Recently, it has been proved that the common nonlocal strain gradient theory has inconsistence behaviors. The order of the differential nonlocal strain gradient governing equations is less than the number of all mandatory boundary conditions, and therefore, there is no solution for these differential equations. Given these, for the first time, transverse vibrations of nanobeams are analyzed within the framework of the two-phase local/nonlocal strain gradient (LNSG) theory, and to this aim, the exact solution as well as finite-element model are presented. To achieve the exact solution, the governing differential equations of LNSG nanobeams are derived by transformation of the basic integral form of the LNSG to its equal differential form. Furthermore, on the basis of the integral LNSG, a shear-locking-free finite-element (FE) model of the LNSG Timoshenko beams is constructed by introducing a new efficient higher order beam element with simple shape functions which can consider the influence of strains gradient as well as maintain the shear-locking-free property. Agreement between the exact results obtained from the differential LNSG and those of the FE model, integral LNSG, reveals that the LNSG is consistent and can be utilized instead of the common nonlocal strain gradient elasticity theory.