I solved it by disconnecting and reconnecting the Sonoff and make a connection with Putty first. Then disconnect and connect again with the Espruino IDE. Make sure your FTDI USB programmer can provide enough current at 3V.
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.
I solved it by disconnecting and reconnecting the Sonoff and make a connection with Putty first. Then disconnect and connect again with the Espruino IDE. Make sure your FTDI USB programmer can provide enough current at 3V.