First, slide the pins out of the hinges to free the old door. Use the old door as a pattern for where to place hinges on the new door. Create mortises with a sharp wood chisel and install the hinges. Then, put the door in place and replace the pins.