Thanksgiving DealsAmazon USThanksgiving week: Black Friday picks start earlyAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCThanksgiving DealsAmazon USDo not wait for the rush - compare today's dealsAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog

How to Install JavaScript on Windows 10: A Beginner’s Step-by-Step Guide

By Freedom251 Team · · 6 min read

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

“Installing JavaScript” on Windows 10 can be confusing because JavaScript isn’t a program you install like Word or a game. JavaScript is a programming language, so what you actually set up is a runtime (commonly Node.js) and a development tool (like Visual Studio Code) to run and build your code.

This guide walks you through installing Node.js (which includes npm), setting up VS Code, and confirming your setup works with a simple test script on Windows 10.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

JavaScript on Windows 10: What You’re Really Installing

When people say “install JavaScript,” they usually mean one of these:

  • Node.js runtime to run JavaScript on your computer (outside the browser).
  • npm (Node Package Manager) to install libraries and tools like Express.
  • A code editor like VS Code to write JavaScript comfortably.
  • A browser to run JavaScript in the front end (Chrome, Edge, Firefox).

For most beginners, the standard path is: install Node.js → get npm → install VS Code → write and run a test file.

Popular on Amazon

Prerequisites (Before You Start)

  • Windows 10 (any modern build should be fine).
  • Internet access for downloads (unless you have offline installers).
  • Administrator rights help with installing software system-wide.

Also check that you’re not mixing multiple Node versions. You can switch later using version managers, but start simple first.

Method 1: Install Node.js (Recommended) Using the Node.js Website

This is the most reliable method for beginners. It installs Node.js and npm, and it can configure Windows PATH automatically.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open your browser and go to the official Node.js downloads page: https://nodejs.org/en/download/.
  2. Choose the LTS (Long Term Support) version. LTS versions are typically stable for everyday development.
  3. Click the Windows installer for 64-bit (usually Windows x64).
  4. Download the installer, then double-click the file (it often looks like node-vXX.X.X-x64.msi).
  5. On the installer welcome screen, click Next.
  6. Review the Destination Folder, then click Next.
  7. Keep the option checked to Automatically configure npm (wording varies slightly by version) and ensure Node.js is added to PATH if shown.
  8. Click Install.
  9. When the installer finishes, click Finish.

After installation, you should be able to open Windows Terminal or Command Prompt and run Node.

Method 2: Install Node.js Using winget (If You Prefer)

If you’re comfortable using the command line, winget can install Node quickly. This method still pulls the official packages, so it’s usually safe.

  1. Open Command Prompt or PowerShell as a normal user.
  2. Check winget exists by running: winget --version.
  3. Search for Node: winget search nodejs.
  4. Install the latest LTS version (example command format): winget install -e --id OpenJS.NodeJS.LTS.
  5. Follow any prompts (if your system asks for confirmation or admin approval).
  6. Close and reopen your terminal to refresh PATH.

If your command fails, the most common fix is updating winget or using Method 1.

Method 3: Install Node.js via Microsoft Store (Simpler, But Limited)

You can install a Node.js app from the Microsoft Store. It can work, but it may be less predictable for development tooling than the official installer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Microsoft Store.
  2. Search for Node.js.
  3. Choose an official or well-known publisher entry.
  4. Click Get (or Install).
  5. After it installs, open a new terminal window.

If you run into npm issues or PATH problems, switch to the official Node.js website installer.

Set Up a JavaScript Editor: VS Code for Windows 10

You don’t need VS Code to run JavaScript, but it makes writing code far easier (syntax highlighting, debugging, integrated terminal).

  1. Go to https://code.visualstudio.com/.
  2. Download the Windows installer for VS Code.
  3. Run the installer and click through the prompts (keep defaults for an easy setup).
  4. Launch VS Code after installation.
  5. Optional: When VS Code asks about recommended extensions, allow it to suggest ones like language support (you can also install later).

VS Code works with npm and Node out of the box once they’re installed.

Verify Your Installation (Node.js, npm, and a Test Script)

Verification is the step that prevents “it installed but nothing works” situations. Do this right after installation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Windows Terminal or Command Prompt.
  2. Check Node.js version:

node -v

  1. Check npm version:

npm -v

  1. Create a test folder. For example:

mkdir js-test
cd js-test

  1. Create a file named app.js using a text editor or VS Code.
  2. Put the following code in app.js:

console.log("JavaScript is working on Windows 10!");

  1. Run the script:

node app.js

If you see JavaScript is working on Windows 10!, your runtime and tooling are correctly installed.

Common Gotchas on Windows 10

  • PATH not refreshed: After installing Node.js, you need a new terminal window. Existing terminals may still not know about node and npm.
  • Multiple Node versions: Installing Node more than once can cause confusion. node -v will show which version is currently used.
  • Using 32-bit vs 64-bit: Modern Windows 10 is usually 64-bit. Use Windows x64 unless you have a specific reason.
  • Firewall/antivirus blocks: Some security tools interfere with downloads or execution. If npm downloads hang, check your security software logs.
  • Smart quotes / wrong file extension: For Node, the entry file should usually end in .js.

Troubleshooting: What to Try When Things Fail

If node is not recognized

Run this from a fresh terminal:

where node

If it returns nothing, PATH wasn’t set (or you didn’t restart your terminal). Uninstall/reinstall using Method 1, making sure the installer adds Node to PATH.

If npm fails or can’t download packages

First confirm npm runs:

npm -v

Then try upgrading npm:

npm install -g npm

If it errors, check your network, proxy settings, and whether your security software blocks npm traffic.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If JavaScript runs in the browser but not with Node

That can happen because browser JavaScript and Node.js JavaScript are different environments. For example, browser code may rely on window or document. Node doesn’t automatically provide those objects.

Use the right API for the environment, or test with Node-friendly code (like your console.log script).

Also popular on Amazon
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

If you get permission errors during npm installs

Avoid running everything as Administrator. Instead, update npm’s permissions and use a user-safe directory.

Quick checks:

  • Try: npm config get prefix
  • Confirm you’re not mixing projects with different permission setups.

If you’re stuck, consider installing Node with the official installer and letting it manage defaults.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Useful Next Steps After You Install JavaScript Tools

Once Node.js and npm are working, you can start building real projects. Here are beginner-friendly milestones that pay off fast.

Create a simple npm project

In your js-test folder (or a new one):

npm init -y

This generates a package.json file you’ll use to manage dependencies.

Install a popular package (Express) for a tiny web server

Install Express:

npm install express

Create server.js:

const express = require("express");
const app = express();
app.get("/", (req, res) => res.send("Hello from Node + Express"));
app.listen(3000, () => console.log("Listening on http://localhost:3000"));

Run it:

node server.js

Add useful VS Code settings

Open VS Code and install the official JavaScript/TypeScript extension if it’s not already present. It improves IntelliSense and formatting.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Alternatives: Browser-Only JavaScript and Static Hosting

If your goal is learning front-end basics, you may not need Node.js right away. Modern browsers can run JavaScript directly.

Run JavaScript in Microsoft Edge or Google Chrome

Create an index.html file and include a script tag. Example:

<script>console.log("Hello from the browser");</script>

Then open the HTML file in your browser.

When to choose Node instead

Choose Node.js when you want build tools, npm packages, server-side code, or frameworks like Express. It’s also the standard foundation for most modern JavaScript development workflows.

FAQs

Do I need to install JavaScript on Windows 10?

No. JavaScript is built into browsers. If you want to run JavaScript outside the browser (for server apps or tooling), install Node.js.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Will Node.js install npm automatically?

Yes. The official Node.js installer includes npm. After installing, verify with npm -v.

Which Node version should I install: LTS or Current?

For beginners, install LTS. It’s tested and updated regularly, and it’s the safest default for learning and small projects.

What if I installed Node but still can’t run node app.js?

Open a new terminal window, confirm node -v works, and check you’re running the command from the folder containing app.js.

Can I write JavaScript without VS Code?

Yes. You can use Notepad for simple scripts, but VS Code is strongly recommended because it improves editing, debugging, and project navigation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Bottom Line

To “install JavaScript” on Windows 10, install a runtime (Node.js) and your tools (npm and VS Code). Once that’s done, verify with node -v, npm -v, and a simple app.js script.

Get the fundamentals working first—then you’ll be ready to install packages, build small projects, and grow from there.

Quick Recap

SaleBestseller No. 1
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$209.99
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$289.00
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of November 20, 2026 5:39 pm GMT+0530.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.