1
Each students has a book.
Each student has a book.
Use a singular noun after each: ‘each student’, ‘each day’.
2
Each of my friend lives nearby.
Each of my friends lives nearby.
After each of, use a plural noun with a word such as the or my: ‘each of the students’, ‘each of my friends’.