I bumped into this problem after npm install -g bower
too. I solved the problem by adding npm’s binary folder to my path.
Here are some helpful hints for doing that:
- Find the location of your npm global binaries:
npm config get prefix
. This path may look something likeC:\Users\username\AppData\Roaming\npm
(orC:\ProgramData\chocolatey\lib\nodejs.commandline.X.XX.XX\tools
if you use Chocolatey). -
Add the path from step 1 to your Path.
-
Open the Windows Control Panel, search for
environment
, then click on eitheredit environment variables for your account
, or Edit the system environment variables`. -
Find the variable named
Path
orPATH
, or create one if it doesn’t exist. -
Paste the path from step 1 here (
;
delimited). -
You may need to restart your command prompt window.
-
-
You should now be able to enter
bower
commands.