The neutral beam injectors of the ITER experiment will rely on negative ion sources to produce 16.7MW beams of H/D particles accelerated at 1MeV. The prototype of these sources was built and is currently operated in the SPIDER (Source for the Production of Ions of Deuterium Extracted from a Radio frequency plasma) experiment, part of the Neutral Beam Test Facility of Consorzio RFX, Padua. In the SPIDER, the H-/D- ion source is coupled to a three grid, 100 kV acceleration system. One of the main goals of the experimentation in SPIDER is to uniformly maximize the extracted current density; to achieve this, it is important to study the density of negative ions available in the proximity of the ion acceleration system. In SPIDER, line-integrated measurements of negative ion density are performed by a cavity ring down spectroscopy diagnostic. Its principle of operation is based on the absorption of the photons of a laser beam pulse by H-/D- photo-detachment; the absorption detection is enhanced by trapping the laser pulse in an optical cavity, containing the absorbing medium (i.e., negative ions). This paper presents and discusses the CRDS diagnostic setup in the SPIDER, including the first measurements of negative ion density, correlated with the main source parameters.