NodeMCU ESP8266 cannot start
Please help! I'm building a small project that user can control 2 leds through the wifi. After I uploaded program to NodeMCU ESP8266. I got these messages

Basic Infos
Hardware
Hardware: NodeMCU ESP8266 MOD
Description

Settings in IDE

Sketch
Hi, I had same problem and I have spent many weeks to try to solve this issue. At last, I found out the reason. Try to set 16th pin mode in the 'setup' function as below. Doing this, mine is resolved.
void setup() { pinMode(16, OUTPUT); // set mode for build in LED which is 16th pin ... }
GPIOs 6 & 7 are used internally, and shouldn't be used for other purposes. Don't confuse GPIO6 & 7 with D6 & 7. Please research more about the nodemcu and pinouts. Closing as user error.