The file web/routes/ffi.js is conflict to ffi in node_modules, so there will be error when run following code.
var ffi = require('ffi')
Cause it doesn't know which ffi to load, I suggest to rename web/routes/ffi.js to web/routes/lib4ffi.js.
Thank you for your contribution of NodeJS and C++ integration.