Here is a useful tip when you don't have a helper and you hang a door by yourself. Any door. Cabinet doors, interior door, exterior doors, large shed doors. Any door.
Step 1: WHEN YOU WORK ALONE
When you try to take off and install hinges the door will want to swing. Like in the picture. If you're alone this can be frustrating trying to align the door with the screw holes -- especially on large doors.
Step 2: THE TIP
TIP: Use a spacer. Something to hold the door in place and prevent it from swinging. On larger doors, a block of wood the exact size of the space below the door will be perfect. You can remove and install hinges with perfection. One hand holding the door, one hand screwing the screws. Take off bottom hinge first, then top, remove the door. Replace the new hinges on the door and rest the door on your spacer. The holes will line up perfectly. Attach the top hinge first, then the bottom. It'll be "frustrationless."