NASA's prediction story originated on a satirical news website & the space agency never alerted that the world would experience total darkness.
The same story has been updated with the year 2020 and recirculated. The edited version stated that through an alert on Nov. 2020, NASA confirmed that the world would experience total darkness between Dec. 16 to 22, 2020. It also mentions that NASA Director Charles Bolden released an emergency preparedness speech in the video, where he encouraged people to prepare for any attacks that may affect the communities during this time.
However, Bolden resigned as NASA administrator on Jan. 20, 2017. He was nominated by President Barack Obama and confirmed by the U.S. Senate as the 12th administrator of NASA. He began his duties as head of the agency on Jul. 17, 2009. At NASA, he has overseen the safe transition of space shuttle missions to a new exploration era focused on full utilization of the International Space Station and space and aeronautics technology development.
PolitiFact states that NewsForMeToday.com wrote on its website on Jun. 2, 2017, that the earth would go dark in 2017 with the headline, "NASA confirms Earth will experience 15 days of darkness In November 2017." But there was no evidence of NASA making such an announcement. It is an unfounded rumor that goes back to at least 2015, which reemerges online around December every year.