Installing Node.js
Start by visiting the main site for NodeJS.org, and click on the stable
download button this will initiate the download for a file name node-v5.9.0.pkg
, double click on the .pkg
file and this will begin the Node.js wizard follow the instructions on the prompt and wait for it to be installed.
If you are using Homebrew, to install packages you use the following command to install node.
brew install node
After the install is complete it will install node at /usr/local/bin/node
and npm at /usr/local/bin/npm
and now you can double check if this directories are on your path by using echo $PATH
on your terminal, if it’s not their make sure you at to this file vim /etc/paths
and now you will have a working version of Node.js.
Once node is installed you can verify that node is setup correctly by checking what version of node is installed with the following command. Open up the terminal and use the following command.
node -v
Result
v5.9.0
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More