Git Product home page Git Product logo

Comments (6)

jordanmkoncz avatar jordanmkoncz commented on May 15, 2024 5

@master-atul thanks for finding that, I had this issue too and I can confirm that switching to Python 2 for the installation resolves it.

If you have Python installed using pyenv (https://github.com/pyenv/pyenv), this is very easy to do (and if you don't have Python installed using pyenv, I highly recommend it). Basic steps with pyenv:

  • pyenv install 2.7.16 (assuming a version of Python 2 is not already installed)
  • pyenv shell 2.7.16
  • npm install

These steps will set your current shell/terminal so that only Python 2 is available, and then when you run npm install from that same shell, the installation/build works.

from react-nodegui.

a7ul avatar a7ul commented on May 15, 2024 1

Alright this seems to be node-gyp issue.
libxmljs/libxmljs#469

Seems like you have python3 installed and node-gyp has issues with it. Would it be possible for you to try with python2 or alternatives as suggested on the above link?

I am planning to add precompiled binary support for this library. But until then this might help.

from react-nodegui.

a7ul avatar a7ul commented on May 15, 2024 1

Will update Readme and close this issue : https://github.com/nodegui/nodegui/projects/1#card-25295641

from react-nodegui.

a7ul avatar a7ul commented on May 15, 2024

Is this only with this specific example or all of them?

from react-nodegui.

a7ul avatar a7ul commented on May 15, 2024

Could you try the starter repo https://github.com/nodegui/react-desktop-starter ?

from react-nodegui.

a7ul avatar a7ul commented on May 15, 2024

Related node-gyp issues: nodejs/node-gyp#193

from react-nodegui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.