Comments (9)
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.
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.
Sorry seems to be something specific to WSL which I haven't come across. Were you able to get it to work?
from videodownloader.
No. Gave up.
from videodownloader.
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.
I'm no longer listening to this thread. Good luck!
from videodownloader.
Thank you @ubaid-desynova ! @mslinn Maybe this will solve your problem?
from videodownloader.
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.
@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)
- Help Building a MacOS App HOT 11
- I download the video, it's just 51 minutes, but it's size is 12G HOT 3
- windows7 安装报错 HOT 2
- Is it possible to hard code the download directory? HOT 1
- Linux version? HOT 2
- test webhook
- Use youtube-dl package HOT 7
- please make deploy to heroku button HOT 1
- Linux version? HOT 1
- Changing file format upon downloading HOT 3
- Can't get onfocusout event to work for #saveAsTitle
- Don't allow title sizes over 255 characters HOT 2
- Yy
- SSL cert error HOT 1
- It doesn't work if I try to download as audio for dailymotion videos.
- Insecure string pickle HOT 3
- Where is the 100 supported websies list? HOT 2
- Video download
- resolution choice / arguments ? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videodownloader.