A component mounting machine (1, 1A) comprising: a component supply section which has a feeder device for feeding carrier tapes formed by cavity sections for holding components being aligned in a row and is configured to sequentially supply the components to a predetermined supply position; a component transfer device which has a suction nozzle (46, 46A) configured to suck the components from the cavity sections at the supply position and mount the component on a board, a mounting head configured to hold the suction nozzle (46, 46A), and a head driving mechanism configured to drive the suction nozzle (46, 46A) and the mounting head; a component fewness detecting section configured to detect that a remaining number of components held by the carrier tape decreases to a predetermined small number; and an invalid suction avoidance section configured to avoid an invalid suction operation of the suction nozzle (46, 46A) based on a detection result of the component fewness detecting section when the remaining number of components held by the carrier tape reaches zero, characterized in that the component supply section has a plurality of feeder devices, and wherein the component fewness detecting section is provided on the mounting head, is shared by a plurality of feeder devices, and faces a tail end side cavity section formed on a tail end side of the carrier tape more by the small number than the cavity section at the supply position in conjunction with the suction nozzle (46, 46A) being driven to the supply position of any one of the plurality of feeder devices and is configured to detect that whether or not the component is held on the tail end side cavity section. a component supply section which has a feeder device for feeding carrier tapes formed by cavity sections for holding components being aligned in a row and is configured to sequentially supply the components to a predetermined supply position; a component transfer device which has a suction nozzle (46, 46A) configured to suck the components from the cavity sections at the supply position and mount the component on a board, a mounting head configured to hold the suction nozzle (46, 46A), and a head driving mechanism configured to drive the suction nozzle (46, 46A) and the mounting head; a component fewness detecting section configured to detect that a remaining number of components held by the carrier tape decreases to a predetermined small number; and an invalid suction avoidance section configured to avoid an invalid suction operation of the suction nozzle (46, 46A) based on a detection result of the component fewness detecting section when the remaining number of components held by the carrier tape reaches zero, characterized in that the component supply section has a plurality of feeder devices, and wherein the component fewness detecting section is provided on the mounting head, is shared by a plurality of feeder devices, and faces a tail end side cavity section formed on a tail end side of the carrier tape more by the small number than the cavity section at the supply position in conjunction with the suction nozzle (46, 46A) being driven to the supply position of any one of the plurality of feeder devices and is configured to detect that whether or not the component is held on the tail end side cavity section.