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"
Written by Vasiliy Zubach
Related protips
2 Responses
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: https://www.cs.purdue.edu/homes/cs348/unix_path.html
Sorry any engrish.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#