In the attic, in a garage attic, or outside on the discharge run. Never in or under living space. Everything downstream of the fan is pressurized soil gas, so a leak in a basement-mounted fan or pipe would push concentrated radon into the house.
More detail
The rule sounds fussy until you picture the airflow. Upstream of the fan the pipe is under suction, so a small leak pulls harmless room air in. Downstream, the pipe is under pressure, so the same small leak pushes radon-laden gas out. Placing the fan at the top of the system, attic or exterior, keeps every pressurized inch of pipe outside the living envelope, which is why the national mitigation standards and every licensed Minnesota installer insist on it. In practice the metro offers two clean routes. Interior: up through a closet or utility chase into the attic, fan in the attic, discharge through the roof; warmer, quieter, and kinder to the pipe in January. Exterior: out the rim joist, fan low on the wall, pipe up the side above the eave; simpler in a finished house, with more winter condensation to manage. A bidder who proposes a basement fan to save routing effort has told you everything you need; check their license against the MDH roster and keep shopping. See choosing a pro.