node.js - Bower: "command not found" after installation -
i seem getting following when execute npm install bower -g
/usr/local/share/npm/bin/bower -> /usr/local/share/npm/lib/node_modules/bower/bin/bower bower@0.8.6 /usr/local/share/npm/lib/node_modules/bower
unfortunately executing of bower commands returns -bash: bower: command not found
which npm
returns /usr/local/bin/npm
, running which node
returns /usr/local/bin/node
.
i assume installed node.js through homebrew, annoyingly puts installed npm binaries in place not in users path. have add /usr/local/share/npm/bin
$path. adding export path=/usr/local/share/npm/bin:$path
.bashrc/.bash_profile/.zshrc file.
although rather uninstall homebrew installed node.js , install installer nodejs.org doesn't have problem.
this problem not bower specific , noticeable globally installed node.js binary, eg. grunt, uglify, jshint, etc.
Comments
Post a Comment