Ionic module.js338, cannot find module 'bower'


I working on github I did a branch. I used the ionic serve command and it works good but when I edit the file app.js and save. And execute again … It dosen’t work the display is a white window and CLI show this error. Someone know about that?I can’t repair. Thanks.

Maybe you did not install bower:

npm install -g bower

I get the same error. The problem is the app cannot find bower and then later on ngCordova. Funny thing is, I used bower to install ngCordova. Been struggling with this for two days.