romgrk / node-gtk

GTK+ bindings for NodeJS (via GObject introspection)
MIT License
493 stars 41 forks source link

Installation not possible #347

Closed systemd11 closed 4 months ago

systemd11 commented 1 year ago

am trying to install node-gtk on my Nobara (Fedora 37 Base) machine. I followed the below steps to install the necessary dependencies:

Installed gtk3-devel, nodejs, npm, gcc-c++, make, glib2-devel, cairo-devel, pango-devel, libjpeg-turbo-devel, giflib-devel, librsvg2-devel, libtiff-devel, libpng-devel, and libwebp-devel using the command sudo dnf install -y gtk3-devel nodejs npm gcc-c++ make glib2-devel cairo-devel pango-devel libjpeg-turbo-devel giflib-devel librsvg2-devel libtiff-devel libpng-devel libwebp-devel. Installed node-gyp globally using the command sudo npm install -g node-gyp. Tried installing node-gtk globally using the command sudo npm install -g node-gtk. However, I encountered errors during the installation process. I have attached two text files error1.txt and error2.txt that show the errors I encountered when I tried installing node-gtk. I ran the following command:

npm install node-gtk (errors.txt) npm install --save node-gtk (errors.txt (In section 2) errors.txt errors.txt ) (I tried without the --save argument as well) Additionally, I ran the command node-gyp rebuild after installing node-gyp but before installing node-gtk.

Could you please help me with resolving these Issues?

BraidenPsiuk commented 1 year ago

Same here, not able to fallback and build with "npm i node-gtk". My machine info: Debian GNU/Linux 12 (bookworm) x86_64, GNOME 43.4. I installed all recommended dependencies per the README.md... I noticed these two suspicious lines:

npm ERR! node-pre-gyp http GET https://node-gtk-1.s3.amazonaws.com/node_gtk/v0.11.0/node_gtk-node-v108-linux-x64.tar.gz
npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://node-gtk-1.s3.amazonaws.com/node_gtk/v0.11.0/node_gtk-node-v108-linux-x64.tar.gz

Update: I just tried the same install command on another Debian x86_64 machine, and built successfully. The two machines I tried on are on the same network, with very similarly installed packages, and I tried building in an identical directory. I compared systemd11's errors with mine and the amazonaws error still seems like it might be related.

romgrk commented 1 year ago

Can you confirm the version numbers? (nodejs in particular)

BraidenPsiuk commented 1 year ago

Both of my machines have Nodejs v18.13.0 (official Debian nodejs apt package) installed

romgrk commented 1 year ago

I've published v0.12.0 just now, with prebuilt binaries for linux & node 16, 18 only.

The macOS binaries have failed, GHA isn't super reliable on macOS. I can try re-running them in a few days, maybe the casks will be fixed.

BraidenPsiuk commented 1 year ago

Re-running "npm i node-gtk@latest" (Your new v0.12.0 release) on my machine that failed previously, works now. Thank you!

mariusrak commented 1 year ago

I have same problem. The interesting line in error is Jetson Nano, Ubuntu 18.04

npm ERR! node-pre-gyp ERR! install response status 403 Forbidden on https://node-gtk-1.s3.amazonaws.com/node_gtk/v0.12.0/node_gtk-node-v93-linux-arm64.tar.gz

When I load the url I really get AccesDenied

romgrk commented 12 months ago

Please always post you full versions (OS + nodejs + node-gtk) when you report something like this. It's likely that we don't generate a prebuilt binary for your versions.

romgrk commented 12 months ago

In this case, we don't generate a binary for you CPU architecture, we only have x86_64. Not sure if GHA does ARM now. In any case, it should fallback to build from source. Is that also failing?

mariusrak commented 12 months ago

It just failed with that message, so guess the build step didn't work.

romgrk commented 12 months ago

Does it work manually? Run npm run build to confirm.

romgrk commented 4 months ago

Closing, stale. Open a new issue with versions & logs if you have a problem to report.