NodeJS Installation Guide
June 04, 2024Node.js is an asynchronous JavaScript runtime environment that executes JavaScript code outside of a browser. This allows developers to code the back ends of their applications using JavaScript instead of another programming language. Node.js runs scripts on the server side to produce dynamic webpage content before the page is sent to the user's web browser.
Node.js has two versions. The LTS version is the most recent stable version that typically guarantees that critical bugs have been fixed or a period of time, often up to 30 months. Apps built for production or requiring a reliable Node.js version should always use LTS releases.
The Current version is the most recent release of Node.js. All new Node.js releases enter a current release period of six months. During this time, the content authors have time to identify major bugs and troubleshoot the build.
Since users of the current version may face incompatibility issues and bugs that are not yet addressed, it is important to download the tested and stable LTS version to make sure your app -- and Node.js -- perform as expected.
Install Node.js on Windows
To install Node.js on a Windows computer, go to Node's download page. Next to the "I want the" text, make sure to select the most recent LTS version from the dropdown menu. Next to the "version of Node.js for" text, select "Windows" from the dropdown menu. Next to the "running" text, select "x64" from the dropdown menu:
After the installer has downloaded, open it to begin the installation process. Follow the prompts by clicking Next in the Setup Wizard, as shown in the following image:
After you click the checkbox to accept the license agreement, continue clicking Next until the installation screen says "Ready to install Node.js".
Note: You may be prompted to install tools for native modules. Make sure there aren't any selected elements on that page and click on Next.
Click the Install button to finish installing Node.js.
When the installation is complete, click Finish.
Install Node.js on macOS
To install Node.js on a Mac, first determine if your Mac's chip is using ARM64 architecture (starting with 2020 Macs) or x64 architecture (2019 Macs or earlier). To do so, click on the Apple icon on the left of the desktop navbar, then select "About This Mac" from the dropdown. Next to the "Chip" label you can find your chip information. If the name includes "Intel", you are running x64 architecture. If the name includes "Apple", you are running ARM64 architecture:
Go to Node's download page. Next to the "I want the" text, make sure to select the most recent LTS version from the dropdown menu. Next to the "version of Node.js for" text, select "Mac" from the dropdown menu. Next to the "running" text, select the correct architecture for your machine from the dropdown menu. The correct options should be selected by default:
After the installer has downloaded, open it to begin the installation process. Just as in the instructions for Windows, follow all of the installation prompts until Node.js is installed on your computer.
To use Homebrew to install Node.js, first go to Node's download page to find the most recent LTE version.
Then, make sure to include the first two numbers of the LTS version in the installation script.
For example, in the image above, the version shown is "20.13.0(LTS)". To install this version using Homebrew, you would use the following script: brew install node@20
.
After the installation is complete, enter node -v
in the terminal to check that the most recent LTS version has been installed.
This page was updated 2 months ago
© 2022 edX Boot Camps LLC. Confidential and Proprietary. All Rights Reserved.
Category: NodeJS
Tagged under: nodejs, javascript, installation, guide, nodejs LTS, homebrew,
All Posts
- OpenAI Account Setup Guide
- NodeJS Installation Guide
- PostgreSQL Reference Guide
- GitHub Copilot Guide
- PostgreSQL Installation Guide
- Deploy with Render and PostgreSQL
- API Resources
- Render Deployment Guide
- Deploying a MERN Stack Application to Render
- Deploy with Render and MongoDB Atlas
- The Science and Research Behind Our Unconventional Educational Approach
- What Makes Up a Web Development Project?
- Localhost Loopback Issues Troubleshooting Guide
- Video Submission Guide
- A Growth Mindset for Life
- Web Literacy
- Developer Resources
- Introduction to Computer Structure and Organization
- MySQL Installation Guide
- HTML Cheatsheet
- Advanced Computer Skills
- Introduction to Computer Skills
- How to Use API Keys
- How to Install MongoDB
- MySQL Reference Guide
- Heroku Deployment Guide
- Getting Started with Git
- Using the GraphQL Playground in a MERN application
- Professional README Guide
- Regular Expression Tutorial
- How to Install the Heroku CLI
- How to Install NodeJS
- Deploy with Heroku and MySQL
- Deploy with Heroku and MongoDB Atlas
- Set Up MongoDB Atlas