It took to finalize the project.
I clone to myself - git clone ...
I initialize npm - npm i
I initialize bower - bower i

And then he writes -

bash: bower: command not found

Files: package.json , bower.json , .bowerrc is. nodejs , git - the latest versions.

I work in coneMu (bash: git bush).

Before that, everything worked perfectly. With everything from a laptop, everything starts and works fine, but not from a computer.

I do not understand what the problem is. Maybe someone faced a similar problem. They write on SO that there is something wrong with the paths, but I don’t understand what to fix.

  • Is bower globally installed? - greybutton
  • $(npm bin)/bower - vp_arth
  • bower and dependencies are installed in c: \ Program Files \ Git \ usr \ local \ and not in c: \ Users \ USER \ AppData \ Roaming \ npm (as needed), and I don’t understand how to "redirect". Globally installed. - HamSter
  • You use Sublime Text: did you try to work with the Bower plugin ? I had no significant problems with him. Thank. - Sasha Chernykh

2 answers 2

bash: bower: command not found

Shell cannot find the bower binary in the $PATH folders.

  • bower is installed locally (in the project): $(npm bin)/bower
  • bower is not installed:
    This means that the dependency is missing in package.json

    • Install locally: npm i bower --save-dev
    • Install globally: npm i bower -g --save-dev

    I decided this way: I manually transferred all the bower files from c:\Program Files\Git\usr\local\ to c:\Users\USER-NAME\AppData\Roaming\npm . It all worked.