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

Installation not possible #347

Closed
systemd11 opened this issue Apr 8, 2023 · 11 comments
Closed

Installation not possible #347

systemd11 opened this issue Apr 8, 2023 · 11 comments

Comments

@systemd11
Copy link

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 systemd11 changed the title Installation not possibl Installation not possible Apr 8, 2023
@BraidenPsiuk
Copy link

BraidenPsiuk commented Jun 28, 2023

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
Copy link
Owner

romgrk commented Jun 28, 2023

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

@BraidenPsiuk
Copy link

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

@romgrk
Copy link
Owner

romgrk commented Jun 28, 2023

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
Copy link

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

@mariusrak
Copy link

mariusrak commented Aug 7, 2023

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
Copy link
Owner

romgrk commented Aug 28, 2023

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
Copy link
Owner

romgrk commented Aug 28, 2023

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
Copy link

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

@romgrk
Copy link
Owner

romgrk commented Aug 29, 2023

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

@romgrk
Copy link
Owner

romgrk commented Apr 4, 2024

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

@romgrk romgrk closed this as completed Apr 4, 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

4 participants