Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bower Command Not Found

Tags:

bower

I am trying to get Bower up and going, but stuck with the Command Not Found error. I have run

npm install -g bower

And there are some ERR! showing though not enough info to help me understand if it is relevant. I pasted the output into a gist so not to take up a ton of space here,

https://gist.github.com/27c49b8a1a5eb552cb8a

I also read about the PATH issue, but I believe I already have that set up,

echo $PATH /usr/local/bin:/Users/ryan/.rvm/gems/ruby-2.0.0-p195/bin:/Users/ryan/.rvm/gems/ruby-2.0.0-p195@global/bin:/Users/ryan/.rvm/rubies/ruby-2.0.0-p195/bin:/Users/ryan/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/ryan/.rvm/bin:/bin:/usr/local/share/npm/bin:/Users/ryan/repos/git-friendly

Not sure what to Google next so I came here, thank you for any help.

like image 806
thatryan Avatar asked Jul 03 '14 23:07

thatryan


People also ask

How do you install Bower Windows?

To install Bower on Windows, you are required to install NPM (Node Package Manager) first. Using NPM, we can easily install the Bower front-end package manager. If you have installed NPM on windows, you can use the “npm install -g bower” command in the command prompt to install Bower on windows.

Is Bower like npm?

The biggest difference is that npm does nested dependencies (but is flat by default) while Bower requires a flat dependency tree (puts the burden of dependency resolution on the user). A nested dependency tree means that your dependencies can have their own dependencies which can have their own, and so on.

What is Bower vs npm?

In Bower, only one version would be installed of a dependency shared by multiple other dependencies. In NPM, multiple versions of the same dependency would be installed, causing unnecessary bloat and thus slowing things down.


2 Answers

Try to remove your bower like

npm remove bower

Then reinstall it using admin account

sudo npm install -g bower

Hope that help.

like image 109
Quentin Avatar answered Sep 21 '22 16:09

Quentin


If you have already installed bower and you are getting command not found error, try this.(else run npm install -g bower)

1.) Goto command prompt.

2.) And run this cmd: set PATH=%PATH%;C:\Users\ "Your username" \AppData\Roaming\npm (Please do not forget to replace your username in the command).

3.) Now the system will be able to find bower and you can install anything you want! :-)

like image 26
Edison D'souza Avatar answered Sep 19 '22 16:09

Edison D'souza