Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons
  • Teach on BraveProgrammer

© 2026 BraveProgrammer. All rights reserved.

Installing Node, npm | Electron.js Desktop App Development l | BraveProgrammer
  1. Courses
  2. /
  3. Electron.js Desktop App Development

Lesson 12 of 28

·javascript

Installing Node, npm & Electron

7 mins

Course progress43%

What you'll learn

Keep these ideas in mind as you work through the lesson.

4 points
  • Node.js is required – Electron ships with its own copy of Node.
  • Install Electron locally (`--save-dev`) to keep the project portable.
  • `npm start` runs `electron .`, which looks for `main` entry in `package.json`.
  • All further commands (packaging, building) use the same local Electron binary.

Installing Node, npm & Electron

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.

Make it stickPractice what you've learned1 quiz · 5 practical tests · Optional activities from Electron.js Desktop App DevelopmentBrowse activities
Previous lessonData Persistence – electron-store, SQLite & LowDBContinue to lesson 13Auto‑Updates with electron‑updaterBack to Electron.js Desktop App Development curriculum