NodeMCU to control MOSFET, not enough voltage
You have 2 options:

1) Use a 3.3V logic level MOSFET designed to be interfaced with 3v3 systems.

2) Tie the MOSFETs gate to +5V using a 10k pull up resistor, and use a NPN transistor to ground the MOSFET via the NodeMCU when required. This is not going to give you spectacular switching characteristics but will work in low speed switching.

It should be easy enough to understand how this works: The 10K resistor is used to turn the MOSFET on when the transistor Q2 is off. To turn the MOSFET off you turn the transistor on, which shorts the MOSFET gate to ground.

See image below (Image not mine, rather googled "NPN MOSFET driver"), replace +12V with +5V