Closed richardabendroth closed 2 years ago
it's an issue with the @pgql/parse
library, which uses https://github.com/ethanresnick/node-pg-query-native
the build step is where it is failing is here: https://github.com/ethanresnick/node-pg-query-native/blob/deb7a23b3b5e3da11e3965d223b89421adb4d773/script/buildAddon.sh
I don't use windows, so while it's technically not directly something I can support, I figured you may be able to read through what it is doing in attempt to build the C code via make
, that may be breaking on windows.
Potentially download https://github.com/ethanresnick/node-pg-query-native and try to get it to build locally, reporting back what works. If we can find a way to get the build working, we can make the updates for windows to work.
If I had to guess, the problem on windows is that script/buildAddon.sh
is bash shell script.
yea, in fact, looks like this if statement explicitly only supports Linux and Mac: https://github.com/ethanresnick/node-pg-query-native/blob/deb7a23b3b5e3da11e3965d223b89421adb4d773/script/buildAddon.sh#L17-L21
Anyone on windows want to give it a shot, looks like those 4 lines would be of interest.
this issue is more relevant for https://github.com/pyramation/libpg-query-node
I guess this is still open / relevant?
@Eprince-hub is also having troubles installing libpg-query
on Windows just now - he'll create an issue over in https://github.com/pyramation/libpg-query-node/issues
Edit: open at https://github.com/pyramation/libpg-query-node/issues/22
The module cannot be installed on Windows 10 due to install script failure. What am I doing wrong here? Already:
Any hints?
The German error message translates to: 'The command "script" is either misspelled or could not be resolved.
C:\Users[...]\AppData\Roaming\npm-cache_logs\2021-01-06T15_45_10_178Z-debug.log: