According everything I've been able to discover, the word "nerd" first appeared in 1950 in Dr. Seuss's If I Ran the Zoo:
Dr. Seuss's Nerd:
"And then, just to show them, I'll sail to Ka-Troo And Bring Back an It-Kutch a Preep and a Proo a Nerkle a Nerd and a Seersucker, too!