NodeMCU arduino IDE blink example doesn't work

I connect my LED to D4 pin and GND.

You need a resistor in seriese with the LED, you might have damaged the output pin by not fitting one. Try using a 220R resistor and another pin.