G
G
gleendo2017-07-07 14:31:08
Windows
gleendo, 2017-07-07 14:31:08

How to put bower ("bower" is not an internal or external command...)?

In general, the essence of the question is in the title. More details on the picture. How to solve this problem?
59d630590c50419ba62bbdb07d58221d.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav, 2017-07-07
@evgeniy8705

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.

F
Fat Lorrie, 2017-07-07
@Free_ze

If you just installed NPM, then you just need to log in to the system or reboot. When installing a package globally, NPM creates an executable file of the new package
in its folder with binaries (where the environment variable looks after NPM installation ). PATHThat is, no magical gestures need to be done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question