Pkg: > Warning Cannot include addon %1 into executable.

Created on 20 Sep 2017  路  4Comments  路  Source: vercel/pkg

Hello,

I'm getting warnings in pkg while using aerospike.

node --version - v6.7.0
npm --version - 3.10.3
pkg --version - 4.2.4

pkg -t node6-linux-x64

> [email protected]
> Warning Cannot include addon %1 into executable.
  The addon must be distributed with executable as %2.
  /home/nilesh/test_code/shared/node_modules/aerospike/build/Release/aerospike.node
  path-to-executable/aerospike.node

package.json

  "pkg": {
    "assets": "../shared/node_modules/aerospike/build/Release/obj.target/aerospike.node:../shared/node_modules/aerospike/build/Release/aerospike.node",
  }

Most helpful comment

@jgoux Copy the file to where? Where is path-to-executable?

All 4 comments

Hello,

for me the solution was to manually copy the oracledb.node file along with the generated binary. You can't encapsulate the .node within the binary I think.

What would be great is to have an option like --copy-native so we don't have to manually copy the native modules.

Hi Julien,

Thanks for the reply.
And yes copying .node files with the created executable solved my problem too. Yes we can not encapsulate them together.

@jgoux Copy the file to where? Where is path-to-executable?

i had same issue. how can i solve this issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ndrantotiana picture ndrantotiana  路  4Comments

Nisthar picture Nisthar  路  4Comments

Admiral-Enigma picture Admiral-Enigma  路  3Comments

jflayhart picture jflayhart  路  4Comments

peterjwest picture peterjwest  路  3Comments