NodeMCU powered with battery and use WiFi I'm running a project with a nodeMCU DevKit and my project runs smooth if I run it connected through the usb wire to the computer. 

I need to run my project using battery and I tried with a ICR14500 battery (3.7V and 700mAh). I connected the battery to the Vin pin but the NodeMCU doesn't send the data to the cloud.

When I run it with the battery I have detected some random behaviour, some times the led on the ESP8622 is blinking continiously and the total board power consumption is around 130mA!

Any idea what can be happening?
It seem to be a problem with onboard regulator such as AMS1117. 
ESP are really sensitive to power instability. 
For every of my project i need to put capacitor on alimentation to prevent bugs. 
I think you dont have enougth voltage to work properly with your regulated input.
To correct this issue you should put two battery to get 7.5 volt on the regulated input. 
Another solution is using 3.3v input to pass trought the regulator.