Setting Up Node
This video will show you how to download and install Node.
This program will use Node Package Manager to install and use essential JavaScript libraries. You will need to install Node on your computer to enable this functionality.
Download the version of Node labeled “LTS” on the main page of the Node website. For additional download options, such as different operating systems and versions, you can navigate to the Node downloads page.
After your download is complete, open the downloaded installation package and follow the installation instructions.
After installation, open your command line application of choice (if you already have a terminal open, make sure to close it and open a new terminal to get access to your installation), type node
, and press enter/return. You should be put into an interactive JavaScript console. Your command line is now ready to use Node!
Type console.log('Hello World!');
and press enter. You should see Hello World
printed to the console.
Press the control button (CTRL) and C (CTRL-C) at the same time to exit the JavaScript console.
Further Instructions
If you need additional help setting up Node, or are using a Windows computer please watch one of the following videos.
Mac
Windows
Author
'The Codecademy Team, composed of experienced educators and tech experts, is dedicated to making tech skills accessible to all. We empower learners worldwide with expert-reviewed content that develops and enhances the technical skills needed to advance and succeed in their careers.'
Meet the full teamRelated articles
- Article
Setting Up Node Locally
Learn how to download Node on your local machine, so you can use the powerful Node.js runtime from your own computer. - Article
What is Node?
Learn about Node.js, a JavaScript runtime for building server-side or desktop applications. - Article
What Different Kinds of Programmers Do
Get quick insights into what different types of programmers do and what their work is like!
Learn more on Codecademy
- Free course
Learn Node.js: Fundamentals
Get an introduction to Node.js—a JavaScript runtime environment typically used to build back-end apps.Beginner Friendly3 hours - Free course
Learn Node.js
Learn about the different components of a web application's back-end and explore the Node.js JavaScript runtime environment.Intermediate5 hours - Skill path
Create a Back-End App with JavaScript
Learn how to build back-end web APIs using Express.js, Node.js, SQL, and a Node.js-SQLite database library.Includes 8 CoursesWith CertificateBeginner Friendly30 hours