Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question