In 1983, Nochka proved a conjecture of Cartan on defects of holomorphic curves in CP n relative to a possibly degenerate set of hyperplanes. In this paper, we generalize the Nochka's theorem to the case of curves in a complex projective variety intersecting hypersurfaces in subgeneral position.