Hello,
I want to use napa, but when run my following simple code:
const napa = require('napajs');
const zone1 = napa.zone.create('zone1', { workers: 2 });
// Broadcast code to all 4 workers in 'zone1'.
zone1.broadcast('console.log("hello world");');
it throw error:
Error: dlopen(xxx/node_modules/napajs/bin/napa-binding.node, 1): no suitable image found. Did find:
xxx/node_modules/napajs/bin/napa-binding.node: unknown file type, first eight bytes: 0x4D 0x5A 0x90 0x00 0x03 0x00 0x00 0x00
xxx/node_modules/napajs/bin/napa-binding.node: unknown file type, first eight bytes: 0x4D 0x5A 0x90 0x00 0x03 0x00 0x00 0x00
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (xxx/node_modules/napajs/lib/binding.js:2:22)
my node version is v8.11.4, npm version is 6.10.1 on Mac.