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.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchJavaScript 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
- 14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
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.
- Open your browser and go to the official Node.js downloads page:
https://nodejs.org/en/download/. - Choose the LTS (Long Term Support) version. LTS versions are typically stable for everyday development.
- Click the Windows installer for 64-bit (usually Windows x64).
- Download the installer, then double-click the file (it often looks like
node-vXX.X.X-x64.msi). - On the installer welcome screen, click Next.
- Review the Destination Folder, then click Next.
- Keep the option checked to Automatically configure npm (wording varies slightly by version) and ensure Node.js is added to PATH if shown.
- Click Install.
- 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.
- Open Command Prompt or PowerShell as a normal user.
- Check winget exists by running:
winget --version. - Search for Node:
winget search nodejs. - Install the latest LTS version (example command format):
winget install -e --id OpenJS.NodeJS.LTS. - Follow any prompts (if your system asks for confirmation or admin approval).
- 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.
- Open Microsoft Store.
- Search for Node.js.
- Choose an official or well-known publisher entry.
- Click Get (or Install).
- 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).
- Go to https://code.visualstudio.com/.
- Download the Windows installer for VS Code.
- Run the installer and click through the prompts (keep defaults for an easy setup).
- Launch VS Code after installation.
- 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.
- Open Windows Terminal or Command Prompt.
- Check Node.js version:
node -v
- Check npm version:
npm -v
- Create a test folder. For example:
mkdir js-testcd js-test
- Create a file named
app.jsusing a text editor or VS Code. - Put the following code in
app.js:
console.log("JavaScript is working on Windows 10!");
- 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
nodeandnpm. - Multiple Node versions: Installing Node more than once can cause confusion.
node -vwill 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.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →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
- 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.
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.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →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.
Do these 3 things before closing this tab:
1Scan for outdated or missing drivers - takes under a minute2Repair Windows errors before they cause bigger problems3Fix the driver behind crashes, sound loss and screen glitchesWill 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.
Recommended Free Tools
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.

