Install Node JS and Bower on OS X
Node JS and NPS
Installing node.js on OS X is really simple, this is how
-
Go to nodejs.org and click to download for your OS (e.g.
Download for OS X (64)
) -
Double click on on the downloaded package (e.g.
node-v4.1.1.pkg
) -
Follow the instructions to install, as per the summary you get on the last screen, check that /usr/local/bin is in your $PATH:
3.1. In the terminal type
echo $PATH
,/usr/local/bin
should be shown in the:
seperated string -
Check that it works:
4.1. In the terminal type
node
to launch the node console4.2.
console.log('something')
should returnsomething undefined
4.3.
CTRL + C
twice orprocess.exit()
to exit
Bower
Installing Bower on OS X is really simple, this is how
-
Install node.js and nps (and git) - see above
-
Install bower:
sudo npm install -g bower
-
Install Packages:
bower install