mkdir my-electron-app && cd my-electron-app npm init -y npm install electron --save-dev Use code with caution. Add a start script to your package.json : "scripts": "start": "electron ." Use code with caution. Then, launch it using: npm start . Method 2: Global Installation and Ad-Hoc Running
Electron is the engine behind many popular desktop applications, from VS Code to Slack, and setting it up on Ubuntu is a straightforward process for developers and power users. This guide covers how to download and install Electron using , Snap , and prebuilt binaries .
First, ensure you have Node.js installed. For the most stable experience, use the NodeSource LTS release :
Comments. Add a comment. 0. sudo npm install electron -g. This worked for me. Copy link CC BY-SA 4.0. edited Nov 30, 2018 at 6:59. Stack Overflow electron - NPM
Use npx electron to run the current directory with Electron without permanently installing the package.

mkdir my-electron-app && cd my-electron-app npm init -y npm install electron --save-dev Use code with caution. Add a start script to your package.json : "scripts": "start": "electron ." Use code with caution. Then, launch it using: npm start . Method 2: Global Installation and Ad-Hoc Running
Electron is the engine behind many popular desktop applications, from VS Code to Slack, and setting it up on Ubuntu is a straightforward process for developers and power users. This guide covers how to download and install Electron using , Snap , and prebuilt binaries . electron download ubuntu
First, ensure you have Node.js installed. For the most stable experience, use the NodeSource LTS release :
Comments. Add a comment. 0. sudo npm install electron -g. This worked for me. Copy link CC BY-SA 4.0. edited Nov 30, 2018 at 6:59. Stack Overflow electron - NPM
Use npx electron to run the current directory with Electron without permanently installing the package. mkdir my-electron-app && cd my-electron-app npm init -y

Visit our support forums and share your opinion with other users