AngularJs : How to install Bower in Ubuntu 14.04

Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you’re looking for. Bower keeps track of these packages in a manifest file, bower.json. How you use packages is up to you. Bower provides hooks to facilitate using packages in your tools and workflows.

Primarily install NodeJs

$ sudo apt-get install nodejs
$ sudo apt-get install npm

Then install npm.

sudo apt-get install npm

Next install Bower.

sudo npm install -g bower

This can throw the following error when running Bower.

/usr/bin/env: node: No such file or directory

In this case you can do an easy symlink. For Linux distributions which install package binaries to /usr/bin you can do the following.

ln -s /usr/bin/nodejs /usr/bin/node


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s