Pine64's Rock64 SBC is an inexpensive ARM computer well suited for running JSFS.
Node is built from source using the follow steps (~ minutes):
- sudo apt-get install python g++ make
- wget https://nodejs.org/dist/v14.17.5/node-v14.17.5.tar.gz
- tar zxf node-v14.17.5.tar.gz
- cd node-v14.15.5
- ./configure
- make -j4 (this step fails: g++: fatal error: Killed signal terminated program cc1plus
- sudo make install
Try using precompiled binaries instead:
- sudo apt install xz-utils
- wget https://nodejs.org/dist/v14.17.5/node-v14.17.5-linux-arm64.tar.xz
- tar -xf node-v14.17.5-linux-arm64.tar.xz
You'll probably want to use something other than the boot SD card for storage. Attach something via USB and mount it at boot like so:
~/node-v14.17.5-linux-arm64/bin/node ./server.js
This fails with the following error:
internal/modules/cjs/loader.js:892
throw err;
^
Error: Cannot find module 'through'
Looks like someone added undocumented dependencies...
Let's try and resolve that:
~/node-v14.17.5-linux-arm64/bin/node ~/node-v14.17.5-linux-arm64/bin/npm install through
This time the server starts.