2dsgua
Last Updated: February 25, 2016
·
7.059K
· tjrus
Z bb38af00

bower: command not found

If you installed bower on your Mac with command npm install bower -g

then try to use it bower --help,

and saw output bower: command not found..

Just run this in terminal:

export PATH="/usr/local/share/npm/bin:$PATH"
Say Thanks
Respond

2 Responses
Add your response

15017
Af2c689c6c8831cb44d7e9d74cd0a9b7

Thanks! But what exactly does this line do? Just wondering.

over 1 year ago ·
16152
Edd43268d5a70a980473bd2fa8fa52a1

@ray760 PATH is an environment variable that contains a list of directories where the shell search for executables. When the output for some command is "not found", it means that the shell did not find the executable for the command in anyone of the directories listed in PATH. This command add to PATH the directory where bower executable is.

More info: https://www.cs.purdue.edu/homes/cs348/unix_path.html

Sorry any engrish.

over 1 year ago ·