All Questions
51
questions
28
votes
2
answers
13k
views
NPM run * doesn't do anything
I was running an Electron project, and everything worked just fine. But now when I run any of the scripts in my package.json (including npm start), it just escapes a line and doesn't do anything.
My ...
112
votes
10
answers
131k
views
How to use sqlite3 module with electron?
I want to develop desktop app using electron that uses sqlite3 package installed via npm with the command
npm install --save sqlite3
but it gives the following error in electron browser console
...
68
votes
3
answers
132k
views
Saving files locally with electron
I have some template files that contain a few variable strings each, I'd like to build a very simple input form with Electron (https://www.electronjs.org/) and I want to save the composed output file ...
28
votes
5
answers
65k
views
How to close electron app via javascript?
I am running an express app via electron.
Below is the main.js
const electron = require("electron"),
app = electron.app,
BrowserWindow = electron.BrowserWindow;
let ...
30
votes
3
answers
25k
views
node module version conflict when installing modules for electron
I'm trying to make an Electron application (https://electron.atom.io/) that reads data from my serial port. I'm new to web technologies in general, I know some javascript, but I'm a c++ guy.
So I ...
14
votes
2
answers
47k
views
How to use FS module inside Electron.Atom\WebPack application?
I need write some data in the file, using FS module (fs.writeFile). My stack is webpack + react + redux + electron.
The first problem was: Cannot resolve module 'fs'.
I tried to use
target: "node",
...
16
votes
7
answers
24k
views
Electron app cant find sqlite3 module
In my electron app I have installed sqlite3 via npm
npm install sqlite3
But once i try to interact with the database it cant find the database, here is the log:
Uncaught Error: Cannot find module ...
2
votes
1
answer
2k
views
npm start not launching browser window [duplicate]
Update — Figured out it thanks to somebody else experiencing the exact same problem right around the exact same time mine must have gone haywire, oddly enough.
I have not worked on my Electron ...
0
votes
1
answer
1k
views
Installing electron globally on Ubuntu with NPM
Attempting to resolve this question and getting the following error when installing electron globally with NPM:
ole@mki:~/angular-electron$ sudo npm install electron -g
/usr/bin/electron -&...
12
votes
4
answers
7k
views
Transparent Windows on Linux (Electron)
Using the transparent argument and setting it to true when creating a new BrowserWindow in Electron usually gives the window a transparent background... But on Linux that isn't the case for my ...
8
votes
1
answer
4k
views
Cross platform NPM start script
I'm building out an Electron app that will be developed by folks on both Windows and OS X. I'd like to create a cross-platform start script. So far, I've had exactly zero luck getting something that ...
6
votes
1
answer
1k
views
Start react-create-app and Electron.js with one NPM command
I have simple custom starter pack react-create-app and Electron.js.
I have added to package.json file:
"scripts": {
"electron": "electron .",
"start": "cross-env BROWSER=none react-scripts ...
20
votes
6
answers
36k
views
'electron-packager' is not recognized as an internal or external command
I recently started using electron. I have successfully completed the 1st phase by creating a hello world app (included files index.html, main.js, package.json). Now I am trying to package the app ...
17
votes
14
answers
14k
views
Install electron on node for windows hangs
I am following the quick installtion guide on electron :http://electron.atom.io/
Script:
Clone the Quick Start repository
git clone https://github.com/electron/electron-quick-start
Go into the ...
13
votes
6
answers
27k
views
Octal escape sequences are not allowed in template strings
I'm building a desktop app using electron and vue, things went normal running the app in dev mode and building it untill the last building by running electron:build but I keep getting this error of ...