The lightest nodejs builds

I am trying to run a small nodejs project on an old router (part of the task), but run into problems because it only has about 6 MB of usable memory. Firstly, I started the upx build , which resulted in a build up 6mb. After that, I tried using the old builds iojs and v1.01. They worked fine, except that they lacked the functions necessary to run the module ws(another part of the task). After that I started ./configurewith arguments --without-dtrace --without-npm --without-etw --without-perfctr --with-icu-source=none, but they still refused to change the assembly size. Is there a way to build nodejs in such a way that it starts the module wsand has an output that is under6mb

+4
source share
2 answers

Due to a memory issue, I think this will not work in your case. Try this espruino . Here you can read in more detail.

0
source

You should try CivetWeb: https://github.com/civetweb/civetweb It includes Websocket and javascript support through Duktape.

0
source

Source: https://habr.com/ru/post/1664111/


All Articles