Getting Started with Node JS in MacOS

Hello Dev.to Readers 👋,

I will make this post come to the point directly, I will first list all the things which you should do to get started with Node js in your machine with MacOS.

Install the Homebrew (brew)
Install NVM using brew
Install NODE u…


This content originally appeared on DEV Community and was authored by Lalit Kumar

Hello Dev.to Readers 👋,

I will make this post come to the point directly, I will first list all the things which you should do to get started with Node js in your machine with MacOS.

  1. Install the Homebrew (brew)
  2. Install NVM using brew
  3. Install NODE using NVM
  4. Install Visual Studio Code using brew

Let's start with installing Homebrew

You can read more about homebrew here

Simply follow the steps below to have it installed

Type the below command in your terminal.

curl -fsSL -o install.sh https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh

Then carefully follow the instructions on your terminal.
Instruction are only to create your profile files if not already existing and if these files already exists, just add the code which your terminal says to add into the profile's file

Confirm the installation by using the following command

brew doctor

If the commands runs without any error it means your brew is installed properly.

Let's Install NVM

Once you have "brew" installed, installing any other software is just a piece of cake 🍰

To read more about nvm (Node Version Manager) click here

Type the following command to install NVM
brew install nvm

Once done, type the below command to confirm if you have installed it successfully
nvm -v

Get ready to install the Node js now.

Let's Install Node

As you already have "nvm" installed

Simply type the below command to install latest stable version of node js know more

nvm install

To confirm the installation, use the following command
node -v

Now, that everything is ready, you need a good IDE to write your code. See instruction below.

Let's Install Visual Studio Code

As you have super powers of "brew" at your disposal, you can get visual studio code installed in matter of a single command.

brew install --cask visual-studio-code

If you have reached till here in this setup guide, then Congratulation 🪁 for this achievement.

Now you can start your journey of a Nodejs Development.
If you need a friend along in this Journey, you can consider connecting with me on Linkedin

This is my first ever blog post, so any kind of feedback will be appreciated.


This content originally appeared on DEV Community and was authored by Lalit Kumar


Print Share Comment Cite Upload Translate Updates
APA

Lalit Kumar | Sciencx (2024-07-04T21:21:16+00:00) Getting Started with Node JS in MacOS. Retrieved from https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/

MLA
" » Getting Started with Node JS in MacOS." Lalit Kumar | Sciencx - Thursday July 4, 2024, https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/
HARVARD
Lalit Kumar | Sciencx Thursday July 4, 2024 » Getting Started with Node JS in MacOS., viewed ,<https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/>
VANCOUVER
Lalit Kumar | Sciencx - » Getting Started with Node JS in MacOS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/
CHICAGO
" » Getting Started with Node JS in MacOS." Lalit Kumar | Sciencx - Accessed . https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/
IEEE
" » Getting Started with Node JS in MacOS." Lalit Kumar | Sciencx [Online]. Available: https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/. [Accessed: ]
rf:citation
» Getting Started with Node JS in MacOS | Lalit Kumar | Sciencx | https://www.scien.cx/2024/07/04/getting-started-with-node-js-in-macos/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.