GPIO8 is an illegal pin to use with the NodeMCU. GPIO8 and the pin marked D8 are not the same thing. You should read this:
Pete.