Giter VIP home page Giter VIP logo

Comments (5)

GabeIsman avatar GabeIsman commented on July 25, 2024

npm rebuild and try again? It's an electron version mismatch.

from sunder.

garrettr avatar garrettr commented on July 25, 2024

@GabeIsman npm rebuild did indeed fix the issue. Should we document this in the README somewhere as a potentially helpful troubleshooting step for other developers? I'm not sure how that would be best worded—what was about it that circumstance that made you think "npm rebuild" will fix this? I had already tried an rm -rf node_modules && npm install, so I'm slightly confused as to why that didn't work, but npm rebuild did.

Sorry for being such an Electron/Node n00b 😝 .

from sunder.

GabeIsman avatar GabeIsman commented on July 25, 2024

Any time I see a 'version mismatch' or 'binding not found' error I assume that I need to rebuild the native deps with npm rebuild.

I think we should probably be running npm rebuild in the postinstall hook, so it gets run every time you npm install. It's smart enough to not rebuild deps that don't need it, so shouldn't add too much time.

I think that npm rebuild is a fairly recent addition to the npm universe, although I'm not sure. Put this in the category of things about the development setup that should be updated to match the latest in the blindingly quick succession of JS development best practices.

Let alone that Webpack now has a completely new, non-backwards-compatible API. 🤦‍♂️

from sunder.

conorsch avatar conorsch commented on July 25, 2024

I would very much like to pin a release channel, e.g. LTS, and use that across all platforms. Then we can declare one and only one version of NodeJS in the README (since Mac users must download separately).

from sunder.

GabeIsman avatar GabeIsman commented on July 25, 2024

I think the root cause of this will be resolved with #38, leaving aside the issue of node versions.

from sunder.

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.