This is a fairly simple process. If your Ranger doesn't have a factory glovebox light and you want one, here's how to do it.
***WRITE-UP DONE ON A 2004***
-1 OEM glovebox lighting hinge (w/ pigtail)
-2 butt connectors
*disconnect your battery prior to doing any of the following steps.
This is the unit you'll need. I pulled mine from a salvage yard.
Open your glovebox and push the outsides inward so it hangs down by the passenger side floorboard.
Look at the top where it would latch and you'll see your non-lighted latching mechanism.
Remove the 10mm nut holding it to the stud.
On my 2004, the fuse panel is on the passenger side kick panel. Remove the cover and the panel to expose the wiring.
cover and panel removed
you'll want to tap into the green/orange wire in the bottom wiring loom
Tap into that wire w/ a butt connector, heat shrink wrap it, and run it up nicely behind the glovebox.
bolt up your new lighted hinge.
connect the green/orange wire coming from the hinge to the wire you just ran up from the kick panel. I pulled the unit with the "christmas tree" pin that held the wire to the top of the glovebox so i could mount it the same way. That pin is held and wrapped with electrical tape from the factory as shown. You can also see where the green/orange wire is connected and heat shrink wrapped to the end that came from the kick panel.
*wrap your heat shrink wrapped joints w/ electrical tape for added security.
Close the glovebox. check the gap when its closed and adjust the latch accordingly to close the gap between the glovebox door and the dash of the truck.
Mine had a gap at first like below
Once you've adjusted your glovebox door, reconnect your battery and open the glovebox.
Boom, theres light. (i have a 194 plug-in LED in mine)
Replace your kick panel and access cover and you're done.