Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

1): no suitable image found. /napa-binding.node: unknown file type, first eight bytes: #285

Open
imhazige opened this issue Jul 15, 2019 · 0 comments

Comments

@imhazige
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant