I have run into a problem where my IDE fails to upload my sketch whenever it reaches ~90% (the exact value of this point is unknown to me but it remains the same every time). I am using the most recent IDE version and a Node MCU 1.0 board. I have tried reinstalling the IDE, and CP2102 driver multiple times, different cables, and even brand new boards. After each attempt the uploading of the sketch fails at the same %. I have included the log of such a failed upload at the bottom of this post, any help is appreciated.
esptool v0.4.13 - (c) 2014 Ch. Klippel ck@atelier-klippel.de
setting board to nodemcu
setting baudrate from 115200 to 9600
setting port from COM1 to COM3
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
espcomm_upload_mem
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
Uploading 299680 bytes from C:\Users\Moses\AppData\Local\Temp\arduino_build_810900/web_updater.ino.bin to flash at 0x00000000
erasing flash
size: 0492a0 address: 000000
first_sector_index: 0
total_sector_count: 74
head_sector_count: 16
adjusted_sector_count: 58
erase_size: 03a000
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
setting serial port timeouts to 15000 ms
setting serial port timeouts to 1000 ms
espcomm_send_command: receiving 2 bytes of data
writing flash
................................................................................ [ 27% ]
................................................................................ [ 54% ]
................................................................................ [ 81% ]
......................An error occurred while uploading the sketch