How to run Node.js on esp8266 (Nodemcu dev board)?

jezuz picture jezuz · Aug 30, 2015 · Viewed 17.9k times · Source

I am trying to connect Apple homekit to nodemcu board, I found a tutorial which works on my computer, but I am wonder if there is any way to load and run Node.JS on a NodeMCU board (ESP8266)?

Answer

Jesse picture Jesse · Apr 15, 2017

You can run Espruino on it. I have the HiLetgo NodeMCU ESP-12E Module and was easily able to load the firmware.

  1. Download and install flasher https://github.com/thingsSDK/flasher.js
  2. Press and hold the flash button press the reset button once. It will flash once.
  3. Open up flasher app and flash the firmware for Espruino.
  4. Unplug the esp8266 and plug it back in
  5. download the web ide for Espruino https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo?hl=en
  6. Change the baud rate Settings --> Communications --> Baud Rate 115200
  7. Connect and enjoy!

Some samples to try out

https://github.com/mertenats/NodeMCU-and-JavaScript