V
V
Vitalik Cherny2017-07-09 16:15:49
Node.js
Vitalik Cherny, 2017-07-09 16:15:49

Why doesn't bower download libraries?

Tell me why bower does not download libraries.
07ed9eed56734ba685fa5cce92e8ca1e.png
It works from another directory (the directory is located on the "E" drive).
49819e1071004db99839bc651e314e41.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav, 2017-07-09
@Devinora

After successfully installing Bower via npm, you also need to set the path either directly to it, or to the entire npm folder if the Bower executable is in the same place as npm, since your system (Windows) itself cannot guess this.
To do this, go to "System Properties / Advanced / Environment Variables", then in the "System Variables" section (do not confuse it with "Environment Variables for the user% User%") edit the path variable, adding the location of the executable file to it, separated by a comma Bower.
Personally, I have both npm and Bower in the same folder, so my variable contains only the path to it, it's something like "C:\Users\Stas\node.js\4.4.0\"
Simply put, find the bower.cmd file through the search and add the path to it (without the name of the file itself) to the specified system variable.
Plus, in your user directory, judging by the log, there is a directory called .bowerrc, but it should not be there, instead, if you wish, you can place a file there with the same name, which will contain the config for Bower (google .bowerrc ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question