How do I…?

How do I install Node.js on Windows?

Many AI tools and MCP servers start with npx, and on a fresh Windows PC that command does not exist yet. By the end, you will have Node.js installed, node, npm and npx answering in PowerShell, and the red npm error fixed with one command.

Read~5 min
Steps9, each shown on screen
Watch3:23 video
Published14 Nov 2026

Prefer to watch? This post goes with the video (3:23). Open it on YouTube.

Subscribe on YouTube

Why you need Node.js

Say you want to try an AI tool, or connect an MCP server to your assistant. The setup page gives you one line to run, and it starts with npx. You paste it into PowerShell, and Windows says it has never heard of npx.

That is because npx is not a Windows command. It comes with Node.js, a free, open-source runtime that lets JavaScript programs run on your own computer. Install Node.js, and you also get npm, its package manager, and npx with it.

You need only two things: a Windows PC and an internet connection. It takes about ten minutes, most of it waiting for the installer.

Download the LTS installer

1

Open the download page

Go to the Node.js download page on nodejs.org. From the home page, Get Node.js brings you to the same place.

The Node.js download page: Get Node.js v26.13.0 LTS for Windows, with a box of fnm commands below it
The download page offers the LTS version. The box of commands is for fnm, a version manager; we skip it.

The page offers the LTS version first. LTS means long-term support: it gets fixes for a long time, so it is the safe pick. Your version number may be newer than the one in the picture, and that is fine.

The box of commands below it uses fnm, a tool for keeping several Node.js versions. You do not need it for a first install.

2

Download the Windows Installer

Scroll down and click Windows Installer (.msi). When the download finishes, click Open file. Windows takes a minute or two to prepare the installer, so wait for it.

Click through the setup wizard

The wizard asks five questions. You keep every default except one box, and that box is step 6.

3

Welcome and licence

Click Next. On the licence page, Next stays grey until you tick I accept the terms in the License Agreement. Tick it, then click Next.

4

Keep the suggested folder

The wizard asks where to install. Keep the folder it suggests, and click Next.

5

Keep all four parts in Custom Setup

Custom Setup lists what goes onto your PC. Leave all four as they are, and click Next.

The Custom Setup page of the Node.js installer: Node.js runtime, npm package manager, Online documentation shortcuts and Add to PATH
Custom Setup: four parts, all kept.
PartWhat it gives you
Node.js runtimeThe node program itself, which runs JavaScript.
npm package managernpm to install packages, and npx to run them.
Online documentation shortcutsStart-menu links to the Node.js documentation.
Add to PATHLets any terminal find node and npm by name. This one matters most.
6

Leave the Tools for Native Modules box unticked

Some npm packages are written in C or C++. They must be compiled on your PC, and that needs extra build tools. This box would install those tools, and Chocolatey, a package manager for Windows, along with them. You do not need them to start, so leave the box empty and click Next.

The Tools for Native Modules page of the Node.js installer, with the box to install the necessary tools and Chocolatey left unticked
The one box to leave alone: it is unticked, and stays that way.
7

Click Install

The wizard says it is ready. Click Install. If Windows asks to allow changes, click Yes.

8

Wait, then Finish

The progress bar may sit empty for a few minutes before it moves, so let it run. When you see Node.js has been successfully installed, click Finish.

Check it in PowerShell

9

Ask node for its version

Open the Start menu, type PowerShell, and open Windows PowerShell. If one was already open, close it and open a new one, so it sees the new PATH. Then type:

Type into PowerShellnode --version
What you should seev26.13.0

Any version number means Node.js is installed. Now ask npm the same question with npm --version.

On many Windows PCs, this is where the red text appears.

When npm says scripts are disabled

node answered, but npm stops with a red error. The key words are in the first line: running scripts is disabled on this system.

PowerShell: node --version prints v26.13.0, then npm --version fails in red: File C:\Program Files\nodejs\npm.ps1 cannot be loaded because running scripts is disabled on this system
node works. npm does not, because it starts through a script.

So why does one work and not the other? Look at the file the error names: npm.ps1. On Windows, npm starts through a small PowerShell script.

PowerShell may be set to block every script, and on a fresh PC it often is. The node command is a plain program, so it was never blocked.

Nothing is broken, and you do not need to reinstall. One command fixes it. Copy it exactly, and run it in the same PowerShell window:

Paste into PowerShellSet-ExecutionPolicy -Scope CurrentUser RemoteSigned

PowerShell explains the change and asks you to confirm. Type Y and press Enter.

What did that change? RemoteSigned lets scripts on your own PC run, such as npm's. A script downloaded from the internet still needs a signature from its publisher. CurrentUser means the change is only for your Windows account, so it needs no administrator rights.

Now ask npm again, then npx:

Run these, one per linenpm --version npx --version
PowerShell after Set-ExecutionPolicy -Scope CurrentUser RemoteSigned and the answer Y: npm --version prints 11.20.0, and npx --version prints 11.20.0
After the fix, npm answers with no error, and so does npx.

Both print a version number. npm and npx share one version, so the two numbers match. Node.js is ready.

The three checks at a glance

Run these any time you want to know whether Node.js is set up on a PC.

Type thisA working PC showsIf you see red
node --versionA version, such as v26.13.0not recognized: open a new PowerShell. Still there? Install again, with Add to PATH kept.
npm --versionA version, such as 11.20.0running scripts is disabled: run the Set-ExecutionPolicy line above.
npx --versionThe same version as npmThe same fix as npm.

The takeaway

  1. Download the LTS installer from nodejs.org, and keep the defaults, with Add to PATH.
  2. Leave the Tools for Native Modules box unticked, unless a package asks for build tools.
  3. If npm says scripts are disabled, run Set-ExecutionPolicy -Scope CurrentUser RemoteSigned once, and answer Y.

Which AI tool are you installing Node.js for? Tell me under the video on YouTube.

References

Where each step and claim on this page comes from. Checked on 13 Nov 2026.

  1. OpenJS Foundation — Download Node.js. The LTS version, the Windows Installer (.msi), and the fnm commands we skip. link
  2. Microsoft — about_Execution_Policies. Why PowerShell blocks scripts on Windows, and what RemoteSigned and the CurrentUser scope mean. link
  3. Microsoft — Set-ExecutionPolicy. The command that fixes the npm error, and the confirm question it asks. link
  4. npm — npx. npx comes with npm and runs a package's command. link
  5. My own install — the recording for the video, Windows 11. Node.js v26.13.0 LTS; npm and npx both print 11.20.0; the red error before the fix, and none after it.