Closed LMJayasundara closed 3 months ago
Add this to package.json:
"pkg": {
"scripts": [],
"assets": [
"./node_modules/node-gyp-build/**",
"./node_modules/@serialport/bindings-cpp/**"
]
},
got same error with compile warning
you have to pass in package.json I don't think it got it, is package.json inside /home/ubuntu/gbt/code?
What do you mean pass
is package.json inside /home/ubuntu/gbt/code
?
Yes, it is. 🥺
Ok but after compile you dind't tried to run it? Sometimes warnign can be ignored
I run it and get same error message i send you
I have a feel the problem here is that you are not running the command from inside the package.json folder, could you try to do so? also remember to change the last path with .
Yes i run command from outside. Ok, I will try and let you know
What version of pkg are you using?
5.10.0
What version of Node.js are you using?
v16.20.2
What operating system are you using?
Linux
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node16-linuxstatic-armv7
Describe the Bug
I am trying to build the code with serialport lib i get an errror. i am using linux machine for build the code to armv7l target machine. when i build code without serialport its work perfect. how i solve it
Build machine![1](https://github.com/yao-pkg/pkg/assets/47645312/38acad79-fca2-43da-b539-407dc18f77c4)
Target machine![2](https://github.com/yao-pkg/pkg/assets/47645312/3b2150c2-da21-40bb-8f5e-3ac62d9deba5)
Package.json
in code i import lib as:
but i got error every time shown in Traget machine png
Expected Behavior
_
To Reproduce
_