Programming With JavaScript
This guide provides quick and easy instructions to set up JavaScript through Node.js on Windows, Linux, and macOS.
Windows Installation
1. Download Node.js
- Visit the official Node.js download page.
- Download the latest LTS version for Windows.
2. Run the Installer
- Double-click the
.msi
file to start the installation. - Follow the prompts and leave the default settings.
- After installation, Node.js and npm (Node package manager) will be installed.
3. Verify Installation
- Open the Command Prompt.
- Type
node -v
andnpm -v
to verify the installations.
Linux Installation
1. Install Node.js
- Open the Terminal.
- Install Node.js by running:
sudo apt update
sudo apt install nodejs npm
2. Verify Installation
- Open a new Terminal window.
- Type
node -v
andnpm -v
to check if Node.js and npm are installed correctly.
macOS Installation
1. Install Node.js using Homebrew
- Open Terminal and run:
brew install node
2. Verify Installation
- Open Terminal and type
node -v
andnpm -v
to verify the installations.
Note: After completing these steps, JavaScript is ready to run using Node.js on your system.