Node.js follows the event-driven architecture. It is also nonblocking, asynchronous, and lightweight, making it suitable for creating event-driven applications. Furthermore, Node.js is also cross-platform, single-threaded, and memory efficient.
Node.js can be downloaded from its official website nodejs.org.
Irrespective of the underlying operating system running the Node.js .msi installer is a straightforward process that involves accepting the terms and conditions and clicking Next a couple of times before clicking Install. Installing Node.js on windows requires that we have administrator privileges. Using the terminal or command prompt in the respective operating system, we can verify that Node.js has been successfully installed by running the command below.
v16.13.1// Version - v16.13.1 was the most current LTS release at the time of writing this article.
Running the command below will equally return the current version of Node.js installed in your system.
Node.js is bundled with the latest version of npm, and therefore having installed Node.js, we have also installed the Node Package Manager. NPM is the world’s largest software registry that allows developers to publish and share useful packages.
At the time of writing this article, the Node.js download included npm 8.1.2. We can verify the version of npm installed alongside Node.js by running the command below in the terminal or Powershell.
We can use the Node Package Manager to determine the version of Nodejs that is installed in the system by running the command below in the command prompt.
C:\Users>npm -v nodejs
Alternatively, the command below can be used in the terminal or command line when npm is installed to determine the current version of Node.js installed in the system.
C:\Users\DelftStack>npm --v nodejs
Welcome to Node.js v16.13.1. Type ".help" for more information. >