Dear sir,
my NodeMcu was working but it did not respond to AT command , so after watching a youtube video i changed its firmware named ai-thinker-v1.1.1.bin . After that AT command works with serial terminal but program is not upload with Arduino IDE , every time it shows error like:
java.io.IOException: Cannot run program "/path/to/new/esptool.py": CreateProcess error=2, The system cannot find the file specified
An error occurred while uploading the sketch.
My selection board in tolls : Nodemcu 1.0 (ESP-12E module)
COM Port and baud rate are same as before.
It appears that you modified the platform.txt file for the ESP8266 boards platform.
The instructions you followed to do that used a placeholder path /path/to/new/esptool.py. The author of those instructions intended you to replace the /path/to/new part of that path with the actual path of the esptool.py file on your computer.
So you could solve this error by correcting the error in the platform.txt file. Since you already edited it once before, you should know where to find that file. The instructions you followed for modifying that file originally should give you direction in learning the path of esptool.py.
After making any change to platform.txt, you must close any Arduino IDE windows that are open and then start Arduino IDE again to cause it to recognize the changes you made to the file.
But I would also question whether it was actually necessary to modify platform.txt at all. In general, it is best to avoid modifying that file as doing so can lead to confusing problems just like the one you are experiencing now. Maybe you actually did have a good reason for modifying the file, but you haven't provided enough information here to allow us to learn what that reason might be.