Since you have ESPtool, and you've previously been using the ESP8266 for Arduino sketches, maybe use ESPtool's erase_flash command then flash again. The flashing command does not touch the area where Espruino saves programs, maybe there is some garbage in that memory area that is not helping. I generally wipe all my ESP8266 boards before flashing, whether I've used for Espruino or not.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Since you have ESPtool, and you've previously been using the ESP8266 for Arduino sketches, maybe use ESPtool's
erase_flash
command then flash again. The flashing command does not touch the area where Espruino saves programs, maybe there is some garbage in that memory area that is not helping. I generally wipe all my ESP8266 boards before flashing, whether I've used for Espruino or not.