Library not loaded: @rpath/libnapa.dylib
sheweichun opened this issue · comments
I install napa by npm install napa
, then run the demo beblow
var napa = require('napajs');
var zone1 = napa.zone.create('zone1', { workers: 4 });
// Broadcast code to all 4 workers in 'zone1'.
zone1.broadcast('console.log("hello world");');
// Execute an anonymous function in any worker thread in 'zone1'.
zone1.execute(
(text) => text,
['hello napa'])
.then((result) => {
console.log(result.value);
});
I get this error
Error: dlopen(/Xxx/testplace/napa/node_modules/.0.1.3@napajs/bin/napa-binding.node, 1): Library not loaded: @rpath/libnapa.dylib
Referenced from: /Xxx/testplace/napa/node_modules/.0.1.3@napajs/bin/napa-binding.node
Reason: image not found
how to solve it?
Please install version 0.1.4. see #80.