Arduino uploading error

when compiling the code ,
no error come but when uploading the code to esp8266 following error message come .
why this happens? how to overcome?

Arduino: 1.8.9 (Windows XP), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (1M SPIFFS)”

Sketch uses 260499 bytes (24%) of program storage space. Maximum is 1044464 bytes.
Global variables use 39308 bytes (47%) of dynamic memory, leaving 42612 bytes for local variables. Maximum is 81920 bytes. Cannot run program “REMOVE/esptool.exe”: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(
at cc.arduino.packages.Uploader.executeUploadCommand(
at cc.arduino.packages.uploaders.SerialUploader.runCommand(
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(
at cc.arduino.UploaderUtils.upload(
Caused by: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(
at java.lang.ProcessImpl.start(
at java.lang.ProcessBuilder.start(
… 9 more
An error occurred while uploading the sketch

Posting pictures of text is very unhelpful.

Please do this:

  • When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum’s 9000 character limit, save it to a .txt file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.


it could be sufficient to unplug your arduino board, close Arduino IDE and then run it again, plug again your board and select the proper USB port.
Actually I do not know what such error depends on, but for me this empirical solution worked well when I got a similar error.