2dsgua
Last Updated: February 25, 2016
·
8.151K
· 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

15017

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

over 1 year ago ·
16152

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