In this paper, the n-component nonlocal Kundu–Eckhaus equation is presented. The Darboux transformation to the nonlocal Kundu–Eckhaus equation is constructed to obtain the N-soliton solution to the equation. The difference between the solution obtained here and that of the local Kundu–Eckhaus equation by Darboux transformation is that the solution of the former has symmetric constraints. Besides, the one-exact solution to the nonlocal Kundu–Eckhaus equation is obtained. For example, as for the three-component nonlocal KE equation, the images of the corresponding rogue wave solutions are drawn by taking specific parameters.