1. How to install NodeJS and npm

How to install Nodejs and npm?

1. Install Nodejs with Homebrew

First, we need to run following code to install Homebrew

/usr/bin/ruby -e "$(curl -fsSL"
Then run brew update to make sure we have latest brew

brew update
Check system for potential problems

brew doctor
Add Homebrew's location to your $path in .bash_profile or .zshrc file.

export PATH="/usr/local/bin:$PATH"
Install NodeJS and npm

brew install node
Make sure NodeJS was installed on your computer by checking version of it

node -v
If that worked fine and you got digit in response, check npm version

npm -v
Welcome to NodeJS family!

If you have any questions, feel free to send them here.
We help ambitious people to get into Tech with no prior experience.