Lesson 12 of 28
javascriptInstalling Node, npm & Electron
7 mins
Course progress43%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 12 of 28
javascript7 mins
Keep these ideas in mind as you work through the lesson.
1️⃣ Node & npm – download from https://nodejs.org (LTS version). Verify:
node -v # e.g. v20.8.0
npm -v # e.g. 10.5.0
2️⃣ Create a project folder and initialise:
mkdir my‑app && cd my‑app
npm init -y # creates a bare package.json
3️⃣ Add Electron as a dev‑dependency:
npm install --save-dev electron
4️⃣ Add a start script to package.json:
"scripts": { "start": "electron ." }
Now npm start will launch Electron.