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

Needs gyp update to 10.2.0 #25

Closed
joric opened this issue Aug 29, 2024 · 1 comment
Closed

Needs gyp update to 10.2.0 #25

joric opened this issue Aug 29, 2024 · 1 comment

Comments

@joric
Copy link

joric commented Aug 29, 2024

I was unable to build it until I set "node-gyp": "^10.2.0" in package.json. I'm using VS 2022 Community and older gyps don't support it.

Error message:

gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Community"
gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use

Related issue: nodejs/node-gyp#2958

Still managed to run it without a module.

git clone https://github.com/z-edit/xelib.git
# change node-gyp to "node-gyp": "^10.2.0"
cd xelib
npm build

I keep the test.js' just outside of the xelib (project) directory. I had to use let xelib = require('./xelib').wrapper; and then copy XEditLib.dll to the script directory. Game path is not needed, it's probably taken from registry. Full script for ppl who want to run it: export_markers.js.

@joric
Copy link
Author

joric commented Aug 30, 2024

Confirmed to work since c0858c6

@joric joric closed this as completed Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant