bot18
bot18 copied to clipboard
Build error on arm. When Zenbot compiles fine.
/root/.npm/_npx/15936/lib/node_modules/bot18/node_modules/js-scrypt/lib/scrypt-async.js:4 var cpu_count = require('os').cpus().length; ^
TypeError: Cannot read property 'length' of undefined
at Object.
Seems this is a known node error with arm64 and require('os').cpus().length Perhaps you could add a line to the config file so the number of cores can be set manually.
require('os').cpus().length; looks for logical cores rather than physical ones. That can actually cause a higher latency on multi-threaded apps as two processes share the same physical core.
https://www.npmjs.com/package/physical-cpu-count