node-gtk icon indicating copy to clipboard operation
node-gtk copied to clipboard

Installation not possible

Open systemd11 opened this issue 1 year ago • 10 comments

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?

systemd11 avatar Apr 08 '23 11:04 systemd11

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.

BraidenPsiuk avatar Jun 28 '23 05:06 BraidenPsiuk

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

romgrk avatar Jun 28 '23 05:06 romgrk

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

BraidenPsiuk avatar Jun 28 '23 06:06 BraidenPsiuk

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.

romgrk avatar Jun 28 '23 06:06 romgrk

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

BraidenPsiuk avatar Jun 28 '23 12:06 BraidenPsiuk

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

mariusrak avatar Aug 07 '23 19:08 mariusrak

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 avatar Aug 28 '23 23:08 romgrk

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?

romgrk avatar Aug 28 '23 23:08 romgrk

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

mariusrak avatar Aug 29 '23 00:08 mariusrak

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

romgrk avatar Aug 29 '23 06:08 romgrk

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

romgrk avatar Apr 04 '24 18:04 romgrk