In my package.json
file, I have bower listed as a dependency. After I run npm install
, bower gets installed locally. When I try to run bower after installing it locally I get an error
"bower" is not recognized as an internal or external command
It seems the only way to resolve this is to install bower globally. Why should I have to do this? If my project contains a local copy of bower, why won't node use it?
question from:https://stackoverflow.com/questions/27389974/locally-installed-versus-globally-installed-npm-modules