Closed itsyourap closed 1 year ago
I'm not sure why win-version-info won't build on your machine, but it shouldn't be necessary anyway, since they publish prebuilds... Ah, unfortunately, it looks like the version here only includes prebuilds up to Node v14, so yes for Node 18 and other recent versions you'll need an environment that can build this.
This is actually only installed & used via the HTTP Toolkit server dependency, which is very outdated because it's only actually really used for smoke testing here (and the server no longer gets deployed to npm, since that never made much sense, so it's tricky to up date).
I'm going to remove the npm dependency on the server entirely to sort that out, probably some time later this week, and then you won't need dependency at all. In the meantime, if you need this working sooner, you can either:
httptoolkit-server
dependency and run the server independently yourself (see https://github.com/httptoolkit/httptoolkit-server/)Perfect! I just used Node v14 and built it perfectly. Thanks a lot ✨
Ok, perfect. I'm going to reopen this for now, just until it's fixed 'properly', but great to hear that that workaround has got you sorted in the meantime.
The server dependency is now removed! That should fix this issue completely.
If you run npm start
it'll now download the latest official server release for your platform (all bundled together, with its own isolated node etc) and launch it for you. You can also launch the server separately elsewhere, any way you like, and then just use npm run start:web
here to start only the UI by itself if you'd prefer.
I was trying to compile and run httptoolkit-ui following the instructions in the README, but
npm install
gives me build errors. I tried to investigate the issue and found that it is due to a dependencywin-version-info
which uses deprecated C++ features according to this.Here is the terminal output:-
2023-03-04T09_12_17_474Z-debug-0.log
How do I fix these errors and compile this? Thanks in advance