Error: Cannot find module 'bower'


#1

I 'm new at this,
How fix this under problem? Thanks now :blush:

C:\Users\Administrator\Downloads\facebook-login-with-ionic-framework-master>ionic serve
Gulp startup tasks: 0=sass, 1=watch
Running live reload server: http://192.168.1.159:35729
Watching: 0=www//, 1=!www/lib//
Running dev server: http://192.168.1.159:8100
Ionic server commands, enter:
** restart or r to restart the client app from the root**
** goto or g and a url to have the app navigate to the given url**
** consolelogs or c to enable/disable console log output**
** serverlogs or s to enable/disable server log output**
** quit or q to shutdown the server and exit**

ionic $ module.js:327
** throw err;**
** ^**

Error: Cannot find module ‘bower’
** at Function.Module._resolveFilename (module.js:325:15)**
** at Function.Module._load (module.js:276:25)**
** at Module.require (module.js:353:17)**
** at require (internal/module.js:12:17)**
** at Object. (C:\Users\Administrator\Downloads\facebook-login-with-ionic-framework-master\gulpfile.js:3:13)**
** at Module._compile (module.js:409:26)**
** at Object.Module._extensions…js (module.js:416:10)**
** at Module.load (module.js:343:32)**
** at Function.Module._load (module.js:300:12)**
** at Module.require (module.js:353:17)**
** q**
Closing Gulp process


#2

is bower installed?

npm install -g bower


#3

Hi,
I am having the same problem, and I have done: npm install -g bowert

When I run ionic setup sass, I get a message saying:

Uh oh! Looks like you’re missing a module in your gulpfile:
Cannot find module ‘bower’

Do you need to run “npm install”?

If i run gulp sass
I get this error:

module.js:327
throw err;
^

Error: Cannot find module 'bower’
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/MYPATH/gulpfile.js:3:13)
at Module._compile (module.js:409:26)
at Object.Module._extensions…js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)


#4

Same error here! 1 day lost and no solution!