Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install on Windows 10 #217

Open
paulsmithkc opened this issue Jul 7, 2022 · 1 comment
Open

Cannot install on Windows 10 #217

paulsmithkc opened this issue Jul 7, 2022 · 1 comment

Comments

@paulsmithkc
Copy link

I'm trying to use this package in combination with pkg to build a cross-platform binary.

node-expat seems to work fine in my dev environment (macos) but when running on Window 10, I am having some issues:

When I try to run the app, I see the following error:

Error: C:\Users\<username>\AppData\Local\Temp\pkg\<packageId>\node-expat\build\Release\node_expat.node is not a valid Win32 application.
C:\Users\<username>\AppData\Local\Temp\pkg\<packageId>\node-expat\build\Release\node_expat.node
    at process.dlopen (pkg/prelude/bootstrap.js:2255:28)
←[90m    at Object.Module._extensions..node (node:internal/modules/cjs/loader:1189:18)←[39m
←[90m    at Module.load (node:internal/modules/cjs/loader:981:32)←[39m
←[90m    at Function.Module._load (node:internal/modules/cjs/loader:822:12)←[39m
←[90m    at Module.require (node:internal/modules/cjs/loader:1005:19)←[39m
    at Module.require (pkg/prelude/bootstrap.js:1855:31)
←[90m    at require (node:internal/modules/cjs/helpers:102:18)←[39m
    at bindings (C:\snapshot\cccupload\node_modules\←[4mbindings←[24m\bindings.js:112:48)
    at Object.<anonymous> (C:\snapshot\cccupload\node_modules\←[4mnode-expat←[24m\lib\node-expat.js:4:34)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22) {
  code: ←[32m'ERR_DLOPEN_FAILED'←[39m
@paulsmithkc
Copy link
Author

paulsmithkc commented Dec 16, 2022

Some investigation showed that it is an issue with node-gyp running in windows.

I was able to get working by manually running node-gyp on the source files after npm install.

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

No branches or pull requests

1 participant