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)?
The published responses are correct but incomplete.
Git to install the packages we first need to make sure git is installed.
Bower uses Node.js and npm to manage the programs so lets install these.
Node will now be installed with the executable located in
/etc/usr/nodejs
.You should be able to execute Node.js by using the command below, but as ours are location in nodejs we will get an error No such file or directory.
We can manually fix this by creating a symlink.
Now check Node.js is installed correctly by using.
Some users suggest installing legacy nodejs, this package just creates a symbolic link to binary nodejs.
Now, you can install npm and bower
Install npm
Install Bower
Check bower is installed and what version you're running.
Reference:
Install Bower Ubutu 14
Install Bower in Ubuntu
Install Bower
or install legacy nodejs:
As seen in this GitHub issue.