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 Bower package was last released in 2014 and after that, the official has announced to give up that package. It is just left as an outdated product on Nuget. So you do not need to install that package but to use the new package just as I recommend. Can 'LibMan' be used?
Bower doesn't concatenate or minify code or do anything else - it just installs the right versions of the packages you need and their dependencies. To get started, Bower works by fetching and installing packages from all over, taking care of hunting, finding, downloading, and saving the stuff you're looking for.
In almost all cases, it's more appropriate to use Browserify and npm over Bower. It is simply a better packaging solution for front-end apps than Bower is. At Spotify, we use npm to package entire web modules (html, css, js) and it works very well.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With