DEV Community

kris
kris

Posted on • Originally published at Medium on

2 ways to install Nodejs on MacOS : the Beginners Guide

this day I’ve talk about how to install Nodejs on MacOS is have two ways use NVM or download installer from nodejs.org

Install from nodejs.org

I’ve start from it because it’s simple just goto nodejs.org and select mac os

install Nodejs on MacOS with installer

you will got installer file then download succeed open it

install Nodejs on MacOS first step

click continue

install Nodejs on MacOS user ageement

and continue and agree

install Nodejs on MacOS User agreement continue

last click install

install Nodejs on MacOS in conclusion

and wait

install Nodejs on MacOS : wait for load

install succeed

install Nodejs on MacOS : succeed and display node path

to call your node open terminal and type node

call nodejs from terminal in mac os

using nvm

nvm is acronym of node package manager is terminal app that help us manage node in different version

first goto nvm.sh it’s direct to github repository then scroll down to installation section copy first line

install Nodejs on MacOS with nvm : nvm repository

because my mac is already install Curl

install Nodejs on MacOS with Curl

when install succeed. use nvm ls-remote for list node version from server

try one on list

I’ve choose 9.2.0

then check node version with node -v

woohoo we succeed install node on mac os I’ve recommend use nvm because is flexible more than use .pkg


Top comments (0)