Install NodeJS and Bower on Ubuntu 12.04 Precise

I’m using Bower on a few projects at work to manage the JavaScript dependencies and it works perfectly for my needs. The only issue is that the websites are currently deployed on Ubuntu 12.04 and the packaged version of NodeJs is too old to install Bower.

The solution is to install Bower and NodeJS on Ubuntu 12.04 using the PPA provided by Chris Lea:

When this has installed, check the version:

Now install Bower:

This will fetch and install Bower globally.

  • dailyinvention

    Thank you, this helped me immensely. I’m currently looking at getting started with Polymer and was trying to get Bower set up.