Unable to launch electron app in linux
See original GitHub issueDescribe the bug
I am trying to launch electron app using npm run electron:serve
in linux but is not working. But in Winodows and Mac is working.
To Reproduce Steps to reproduce the behavior:
run npm run electron:serve
Expected behavior Launching Electron works.
Screenshots
It never launch the app on linux.
Environment (please complete the following information):
- OS and version: Kali GNU/Linux and version: 2019.3
- node version: v12.13.1
- npm version: 6.12.1
- yarn version (if used):
- vue-cli-plugin-electron-builder version : 1.4.3
- electron version: 5.0.12
- other vue plugins used:
- custom config for vcp-electron-builder:
- (if possible) link to your repo:
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
electron-rebuild "Unable to find Electron app ..." - Stack Overflow
Another important thing is, just check once the dependencies by running command npm list --depth=0 and confirm that electron is there. Share.
Read more >Re: iMX8QM: Unable to launch electron js GUI appli...
I am working on electron js application (.AppImage) porting for cross platform (arm64). I cross compiled and it is executed but it is...
Read more >A Comprehensive Guide to Building and Packaging an ...
As we look at each one we'll be trying to package an app for Mac, Windows, and Linux. The Electron Quick Start Guide...
Read more >Common Configuration - electron-builder
npmRebuild = true Boolean - Whether to rebuild native dependencies before starting to package the app. buildNumber String | “undefined” - The build...
Read more >Building your First App | Electron
Electron apps are scaffolded using npm, with the package.json file as an entry ... Electron can run in: win32 (Windows), linux (Linux), and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@hatsantos see this link for more details on the purpose of that command. The page is for puppeteer but the issue is the exact same as Electron as both use Chromium, which is causing the issue.
I don’t use Linux daily (Windows Dev) but now I need to build and app for Linux using Electron.
I am facing a similar issue… The app works when running only the “webapp”, the build is done successfully but when trying to open the app nothing happens, not even the splash screen appears on the screen.
Since I’m not a regular Linux user, can I ask what exactly does the command:
sudo sysctl -w kernel.unprivileged_userns_clone=1
How can I rollback the previous command? Did not tested the command (do not want to break my Linux installation or anything…)
Do my app users also need to do this?
I’m using a virtual machine (VirtuaBox) with Ubuntu 20.10 to build and test the app.
My Electron version is 10.2.0.