NodeMCU 12E: Using 8 Digital pins 8 Channel Relay
The issue that you are experiencing, is because the state of tgh GPIOs 0, 2, and 15 are in a state that stops the NodeMCU from booting. These GPIOs are on the NodeMCU pins D3, D4, and D8.

Just leave these pins free, and connect the relays to other pins.

This table might be useful:
https://iotbytes.wordpress.com/nodemcu-pinout/