What is the origin of nyctophobia?

Nyctophobia “fear of night or nighttime darkness” is a compound of the combining forms nycto- “night” and -phobia “fear.” Nycto- derives from Ancient Greek nýx, of the same meaning, and comes from the same Proto-Indo-European root, nekwt-, found in English night, German nacht, and the Latin-derived terms equinox and nocturnal. In Greek mythology, Nyx was the primordial goddess and personification of nighttime who mated with Erebus, the god of darkness, to create Aether, the god of the upper air, and Hemera, the goddess of daytime. The ending -phobia is commonly used to indicate fear, and the opposite is -philia; while nyctophobia is fear of darkness, nyctophilia is love of darkness. The ending –phobia derives from Ancient Greek phóbos “fear” (but originally “flight”), which is related to Latin fugere “to flee,” as in fugitive.  Nyctophobia was first recorded in English in the early 1890s.