Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Directly above the exercise he writes: "Calabi-Yau manifolds, i.e. varieties with trivial canonical bundle", which shows that he is not assuming smooth or projective (this is the first mention of Calabi-Yau in this book)