After installing on Apple silicon, a minimal example fails to run
import { Builder } from '@contentauth/c2pa-node';
const builder = Builder.new();
Error: dlopen(<REMOVED>/node_modules/@contentauth/c2pa-node/dist/index.node, 0x0001): tried: '<REMOVED>/node_modules/@contentauth/c2pa-node/dist/index.node' (slice is not valid mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/<REMOVED>/node_modules/@contentauth/c2pa-node/dist/index.node' (no such file), '<REMOVED>/node_modules/@contentauth/c2pa-node/dist/index.node' (slice is not valid mach-o file)
at Object..node (node:internal/modules/cjs/loader:2030:18)
at Module.load (node:internal/modules/cjs/loader:1594:32)
at Module._load (node:internal/modules/cjs/loader:1396:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.require (node:internal/modules/cjs/loader:1617:12)
at require (node:internal/modules/helpers:153:16)
at getNeonBinary (file:///<REMOVED>/node_modules/@contentauth/c2pa-node/dist/binary.js:22:16)
at Builder.new (file:///<REMOVED>/node_modules/@contentauth/c2pa-node/dist/Builder.js:19:25)
at file:///<REMOVED>/index.js:9:28
at ModuleJob.run (node:internal/modules/esm/module_job:439:25) {
code: 'ERR_DLOPEN_FAILED'
}
Post install scripts are allowed for the package and file @contentauth/c2pa-node/dist/index.node exists
Environment
OS: macOS
Architecture: Apple Silicon / arm64
Package: @contentauth/c2pa-node
Version: 0.8.2
Package manager: npm
Node.js: v24.19.0
After installing on Apple silicon, a minimal example fails to run
Post install scripts are allowed for the package and file @contentauth/c2pa-node/dist/index.node exists
Environment
OS: macOS
Architecture: Apple Silicon / arm64
Package: @contentauth/c2pa-node
Version: 0.8.2
Package manager: npm
Node.js: v24.19.0