Nodemcu, working on simple sketches, wifi one errors

aleza:
<...>tried all the non-wifi examples...all of them worked.

I am using the nodemcu attached to the USB port, since, I want to do debugging.

Try my latest wifi sniffer program... It uses wifi in promiscuous mode, so power requirements are under 50mA. If this works, then I suspect some type of voltage sag due to current increases during transmit.

Good luck,

Ray