Generally, flooring contractors prefer that the cabinets go in first so that there is less possibility of the floor getting scratched. Cabinet installers like the floor to be in place so that the cutting and dust from the floor installation will not damage the vanity.