romgrk / node-gtk

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

Documentatin bug? #342

Closed PopeNobody closed 1 year ago

PopeNobody commented 1 year ago

The building instructions for Ubuntu said to do some apt-gets, and then "npm install node-gtk"

This did not work for me. It complained it could not find '*.node" files when I tried to run even the "hello world" example.

However, when I just did "npm install" in the root of what I had gotten from git, it did work, and I was able to fire up the browser example.

Hope his is helpful to somebody.

PopeNobody commented 1 year ago

Well, I goota say, this is the bee's knees.

Usually example browsers are luky to render a hunk of html properly.

This this looks beautiful, and I logged into githup with ti to make this comment.

Nifty!

binyamin commented 1 year ago

@PopeNobody Thanks for the report. I'm glad you loved it. Did you run this in a fresh Node.js project, or in a clone of the node-gtk git repository?

PopeNobody commented 1 year ago

In the node-gtk repository thus far. next step is to figure out how to use it to generate quote images for some of my favorite authors.

edit(romgrk): redacted for readability

romgrk commented 1 year ago

Could you post an install log so we see what's going wrong? And the commands you're using to install as well.

PopeNobody commented 1 year ago

The problem is solved, but basically, either I misread, or the docs said to clone the repository, and then do a "npm install node-gtk".

Which, of course, does not make sense, it would install the version from the npm repository, not build the version from github. So the fix was to do "npm install", instead.