How to Install Node.js & npm on Windows 11 WITHOUT Errors (2026)

Опубликовано: 04 Июнь 2026
на канале: Lite AI Lab
131
7

Install Node.js and npm on Windows 11 without errors. Most guides skip the two installer screens that cause 90% of the problems — this video covers both.

You'll get a clean install, both version checks passing, and the exact fix for the two most common errors Windows 11 throws at this setup.

────────────────────────────────────────
WHAT'S COVERED
────────────────────────────────────────

0:00 Intro
0:27 Pre-check: is Node.js already installed?
0:48 Download Node.js & npm from nodejs.org
1:22 Install: the two decision screens explained
2:44 Verify node and npm are working
3:22 Fix: npm not recognized (PATH variable)
3:57 Fix: PowerShell script execution error
5:00 First Node.js project end to end

────────────────────────────────────────
COMMANDS USED IN THIS VIDEO
────────────────────────────────────────

Check if Node.js is already installed:
node -v

Check npm version:
npm -v

Initialize a new Node.js project:
npm init -y

Install the figlet package:
npm install figlet

Run your script:
node index.js

────────────────────────────────────────
FIX 1 — npm "not recognized" after install
────────────────────────────────────────

Windows has lost the path to your Node.js folder. Add it manually:

Open Windows search and type: Environment Variables

Click Edit the system environment variables

Click the Environment Variables button at the bottom

Under System variables, double-click Path

Click New and add this exact entry:

C:\Program Files\nodejs

Click OK on all three windows, open a fresh terminal, and run npm -v again

────────────────────────────────────────
FIX 2 — PowerShell "scripts is disabled" error
────────────────────────────────────────

Open PowerShell as Administrator and run this command:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

This lets local scripts like npm run freely. Scripts downloaded from the internet still require a trusted signature — you're not turning off security, just unlocking local tools.

────────────────────────────────────────
FIRST PROJECT — index.js
────────────────────────────────────────

Create a new folder, open it in VS Code or Command Prompt, then run:


npm init -y
npm install figlet
Create a file called index.js and paste this code:


const figlet = require('figlet');

figlet('Hello, Node!', function(err, data) {
if (err) return;
console.log(data);
});
Run it with:


node index.js
You'll see large ASCII text printed in the terminal — Node.js and npm are fully working.

────────────────────────────────────────
MORE WINDOWS 11 SETUP GUIDES
────────────────────────────────────────

How to Install Git on Windows 11 & First-Time Setup (2026):
   • How to Install Git on Windows 11 & First-T...  

How to Install Visual Studio Code on Windows 11 (The PROPER Setup):
   • How to Install Visual Studio Code on Windo...  

────────────────────────────────────────

Subscribe for more Windows 11 developer setup guides.

#nodejs #npm #windows11