Installing Bower on Ubuntu

Luke picture Luke · Feb 1, 2014 · Viewed 181.6k times · Source

I'm trying to install Bower on XUbuntu 13.10, following the instructions on the Bower home page, after doing sudo apt-get install npm and sudo npm install -g bower I get the following after issuing bower on the command line:

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

I then install Node (even though I assume that would not be unnecessary since Bower's only dependency would be NPM, correct?). Anyhow, after I install node with sudo apt-get install node any of the Bower commands, such as bower help, simply don't do anything, i.e. output nothing.

How to install Bower on Ubuntu (preferably without manually downloading various versions of things)?

Answer

NiL picture NiL · Apr 1, 2014
sudo ln -s /usr/bin/nodejs /usr/bin/node

or install legacy nodejs:

sudo apt-get install nodejs-legacy

As seen in this GitHub issue.