2 Channel Relay normal open is not working with NodeMCU but led on board light up
Your second configuration is right because from picture of relay module it clear that it requires 5V supply.

 relay working principal is:


when the signal port(in1/in2) is at low level, the signal light will light up and the optocoupler (it transforms electrical signals by light and can isolate input and output electrical signals) will conduct, and then the transistor will conduct, the relay coil will be electrified, and the normally open contact of the relay will be closed.
When the signal port(in1/in2) is at high level, the normally closed contact of the relay will be closed. So you can connect and disconnect the load by controlling the level of the control signal port.


As you mentioned that in second configuration there is no LED glow. For find out solution of your problem, you have do one test. Test voltage level of D1/D2. Just make connection on breadboard as mentioned in image.

If voltage level is correct that it might be problem with your relay module.

Also I have attached here relay connection reference for your directness.