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.
Node.js and npm (Node Package Manager) are often installed together, as npm comes bundled with Node.js.
Installing Node.js
-
Visit the official Node.js website: Node.js Downloads;
-
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;
-
Run the installer and keep the default settings during installation;
-
Once the installation is complete, open your terminal or command prompt and verify that Node.js was installed successfully:
node --version -
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.
Thanks for your feedback!
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat