How to Set Up Node.js
1. Download Node.js
Visit the official Node.js website: https://nodejs.org/.
Choose the LTS (Long-Term Support) version for stability or the Current version for the latest features.
2. Install Node.js
Run the downloaded installer and follow the on-screen instructions:
Accept the license agreement.
Choose the installation directory (default is recommended).
Install additional tools if prompted (optional).
3. Verify the Installation
Open a Command Prompt (Windows) or Terminal (Mac/Linux).
Type the following command to check the installed version of Node.js:
This will display the version number if Node.js is installed correctly.
4. Check npm (Node Package Manager)
Node.js comes with npm pre-installed. Verify it by typing:
This will display the installed version of the npm.
5. You should have successfully set up Node.js
Last updated