Giter Site home page Giter Site logo

Comments (9)

kerwanp avatar kerwanp commented on July 23, 2024 20

Here is an other solution to avoid installing Node and NPM to your host machine:

  • Uninstall electron npm uninstall electron
  • Change npm config platform export npm_config_platform=win32
  • Install electron npm install electron
  • Unset the environment variable unset npm_config_platform

from videodownloader.

ubaid-desynova avatar ubaid-desynova commented on July 23, 2024 2

I found the easiest way is to install electron on Windows then start it from WSL.

Steps:

Make sure you have Node.js & npm installed on your Windows machine (you can remove them afterwards) Open cmd.exe, move to your project directory and run npm install electron --save-dev. This will install the Windows version of the prebuilt Electron binary instead of the Linux one, which would occur if you try to install from WSL. (This is the actual trick) Enter Bash on Ubuntu on Windows, move to your project directory then run ./node_modules/.bin/electron (or use an npm script) to launch your Electron app Though, I'm not sure this is very convenient, it seems to work well.

I hope this will help people encoutering the same issue in the future!

Ref: electron-userland/electron-prebuilt#260

from videodownloader.

mayeaux avatar mayeaux commented on July 23, 2024

Sorry seems to be something specific to WSL which I haven't come across. Were you able to get it to work?

from videodownloader.

mslinn avatar mslinn commented on July 23, 2024

No. Gave up.

from videodownloader.

mayeaux avatar mayeaux commented on July 23, 2024

Yeah sorry about that I hadn't heard of such a thing before. Sounds like it's new to Electron 5.0+ as well.

This seems to have the fix in there somewhere: electron/electron#17972 Can't really test it myself as I can't replicate it as I'm on OS X but if you find something that works I'm happy to merge a pull request! :)

from videodownloader.

mslinn avatar mslinn commented on July 23, 2024

I'm no longer listening to this thread. Good luck!

from videodownloader.

mayeaux avatar mayeaux commented on July 23, 2024

Thank you @ubaid-desynova ! @mslinn Maybe this will solve your problem?

from videodownloader.

mayeaux avatar mayeaux commented on July 23, 2024

Thanks @kerwanp ! I'm gonna leave this issue open just so people can find your solution more easily if they run into this.

from videodownloader.

abdulsalamalmahdi avatar abdulsalamalmahdi commented on July 23, 2024

@kerwanp thank you very much I abandoned learning about Elecron becasue of this. thanks to you I am back at it again

from videodownloader.

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.