D
D
DarkByte20152016-10-01 10:45:34
linux
DarkByte2015, 2016-10-01 10:45:34

How to use Electron?

Put it like this: "sudo npm install electron-prebuilt -g". I don't know how to start. :( Everywhere in Google it says the command "electron." But it doesn't start, writes an error:
Error launching app
Unable to find Electron app at /home/user
Cannot find module '/home/user

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-10-01
@SPAHI4

npm i electron -g

V
Vasily Chernenkov, 2017-10-03
@123581321345589

as Anton pointed out, you can install electron globally
further in package.json by adding:
"scripts": {
"start": "electron ."
}
then open the command line in the project folder, and write:
npm start

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question