bower install does nothing, not even throw an error

This work for me:

bower install --force

where the --force to install forcefully


I had the same problem. It seems to be caused by an incorrect node package.

Removing the node package and installing the legacy package instead worked for me:

apt-get remove node
apt-get autoremove
apt-get install nodejs-legacy

You checked which npm and which bower, but you didn't check which node. On Ubuntu, the node package is unrelated to NodeJS. The NodeJS package is installed as nodejs, which will break any scripts that depend on node. This is similar to another question where a global installation of jshint wasn't working.

Assuming you have nodejs installed, you can create a symlink so that node points at nodejs:

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

If that doesn't work, or if you prefer not to use the version of NodeJS in the official repositories, you can install Node from a PPA (which will give you both node and nodejs commands) or use NVM (which is my personal preference, as it avoids the need for sudo when installing npm modules).

Tags:

Npm