Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Installing Node.js | Introduction to Node.js and Backend Development
Backend Development with Node.js and Express.js

Installing Node.js

Swipe to show menu

Now that we understand what Node.js is and its purpose, it's time to roll up our sleeves and get our hands on the real deal. As Node.js is a JavaScript runtime environment, installing it on your local machine is highly recommended.

System Requirements

Before diving in, let's quickly check the system requirements to ensure your computer is ready to handle Node.js:

  • Windows: Windows 7 or later;
  • macOS: macOS 10.12 (Sierra) or later;
  • Linux: A modern Linux distribution with GLIBC version 2.17 or later, along with development tools (GCC, G++, etc.) for compiling native addons.
Note
Note

Node.js and npm (Node Package Manager) are often installed together, as npm comes bundled with Node.js.

Installing Node.js

  1. Visit the official Node.js website: Node.js Downloads;

  2. Download the latest LTS (Long-Term Support) version. The LTS release is recommended for most learners because it receives long-term updates and is the version used in most tutorials and production projects;

  3. Run the installer and keep the default settings during installation;

  4. Once the installation is complete, open your terminal or command prompt and verify that Node.js was installed successfully:

    node --version
    
  5. Verify that npm, the Node Package Manager included with Node.js, is also installed:

    npm --version
    

If both commands return version numbers, your installation is complete and you're ready to start building Node.js applications.

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 1. Chapter 4

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Section 1. Chapter 4
some-alt