Install bower on Mac OS X

published on in category OS X Webdev , Tags: Bower OS X

In this guide I’ll show you how to install the package manager Bower on Mac OS X. Bower is a NodeJS application, so you’ll need to install the Node Package Manager npm first. npm is available as a package in the Homebrew repositories.

If you don’t have Homebrew installed, it’s probably time to do so and then install npm and bower:

ruby -e "$(curl -fsSL"
brew install npm
npm install -g bower

In case you get the following error while installing the bower package, add the following lines to your /etc/services file:

fatal: Unable to look up (port 9418) (nodename nor servname provided, or not known)

ntp             123/tcp
ntp             123/udp

Now that the installation is complete, run bower using bower.

I run this site without advertisement of any kind. All information is free and my only goal is to give back something to the amazing free software development community. If you find some value in this, please consider donating me a cup of coffee using PayPal. Thank you so much!