A component mounting device comprising: a head unit having a first nozzle array (16a,16a···) including a plurality of nozzle members (18,19) aligned in one row in a first direction, and a first linear motor that vertically drives the nozzle members of the first nozzle array, a head unit has a second nozzle array (17a, 17a···) that includes a plurality of nozzle members (18,19) aligned in one row in the first direction and that is aligned in a second direction orthogonal to the first direction with respect to the first nozzle array, and a second linear motor that vertically drives the nozzle members of the second nozzle array, the first linear motor and the second linear motor each including a linear motor main body and a frame member that supports the linear motor main body, the linear motor main body including a stationary element fixed to the frame member and a mobile element that faces the stationary element in the second direction and that is movable in a vertical direction with respect to the stationary element, the stationary element being an armature provided with a core that is aligned in the vertical direction and that has a plurality of teeth extending in the second direction, and a coil fitted to each of the respective teeth of the core, the mobile element being a field element having a plurality of permanent magnets arranged in the vertical direction such that surface polarities thereof on a side facing the stationary element differ alternately, each of the nozzle members being coupled to the mobile element, and the first linear motor and the second linear motor each including a linear encoder configured to detect a position, in the vertical direction, of the mobile element of the linear motor main body, and being mounted to the head unit in a state that the mobile element of the first linear motor and the mobile element of the second linear motor are in close proximity with each other in the second direction, and each stationary element and each linear encoder is located outside the mobile element. a head unit having a first nozzle array (16a,16a···) including a plurality of nozzle members (18,19) aligned in one row in a first direction, and a first linear motor that vertically drives the nozzle members of the first nozzle array, a head unit has a second nozzle array (17a, 17a···) that includes a plurality of nozzle members (18,19) aligned in one row in the first direction and that is aligned in a second direction orthogonal to the first direction with respect to the first nozzle array, and a second linear motor that vertically drives the nozzle members of the second nozzle array, the first linear motor and the second linear motor each including a linear motor main body and a frame member that supports the linear motor main body, the linear motor main body including a stationary element fixed to the frame member and a mobile element that faces the stationary element in the second direction and that is movable in a vertical direction with respect to the stationary element, the stationary element being an armature provided with a core that is aligned in the vertical direction and that has a plurality of teeth extending in the second direction, and a coil fitted to each of the respective teeth of the core, the mobile element being a field element having a plurality of permanent magnets arranged in the vertical direction such that surface polarities thereof on a side facing the stationary element differ alternately, each of the nozzle members being coupled to the mobile element, and the first linear motor and the second linear motor each including a linear encoder configured to detect a position, in the vertical direction, of the mobile element of the linear motor main body, and being mounted to the head unit in a state that the mobile element of the first linear motor and the mobile element of the second linear motor are in close proximity with each other in the second direction, and each stationary element and each linear encoder is located outside the mobile element.