Last Updated: February 25, 2016
· tjrus

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"

2 Responses
Add your response

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

over 1 year ago ·

@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:

Sorry any engrish.

over 1 year ago ·