Im able to upload example program in my node mcu but im not able to upload my written program

Note: the following program that im trying to run is compiling but not able to upload.

Here is the error:

esptool.py v3.0
Serial port COM8
Connecting......................................____Traceback (most recent call last):
File "C:\Users\lenovo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0/tools/upload.py", line 66, in
esptool.main(cmdline)
File "C:/Users/lenovo/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 3552, in main
esp.connect(args.before, args.connect_attempts)
File "C:/Users/lenovo/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 529, in connect
raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))
esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
_
the selected serial port _
does not exist or your board is not connected
Invalid library found in C:\Users\lenovo\Documents\Arduino\libraries\ESP8266SdFat: no headers files (.h) found in C:\Users\lenovo\Documents\Arduino\libraries\ESP8266SdFat
Invalid library found in C:\Users\lenovo\Documents\Arduino\libraries\Ethernet: no headers files (.h) found in C:\Users\lenovo\Documents\Arduino\libraries\Ethernet
Invalid library found in C:\Users\lenovo\Documents\Arduino\libraries\SoftwareSerial: no headers files (.h) found in C:\Users\lenovo\Documents\Arduino\libraries\SoftwareSerial
Invalid library found in C:\Users\lenovo\Documents\Arduino\libraries\ESP8266SdFat: no headers files (.h) found in C:\Users\lenovo\Documents\Arduino\libraries\ESP8266SdFat
Invalid library found in C:\Users\lenovo\Documents\Arduino\libraries\Ethernet: no headers files (.h) found in C:\Users\lenovo\Documents\Arduino\libraries\Ethernet
Invalid library found in C:\Users\lenovo\Documents\Arduino\libraries\SoftwareSerial: no headers files (.h) found in C:\Users\lenovo\Documents\Arduino\libraries\SoftwareSerial

@pert
This seems to be in your domain :grin: