0

when i run grunt serve it will send msg below and server doesnt run

Running "wiredep:app" (wiredep) task Cannot find where you keep your Bower packages

I went through google found out solution to comment

wiredep: {
  options: {
    //cwd: '<%= yeoman.app %>'
  },
  app: {
    src: ['<%= yeoman.app %>/index.html'],
    ignorePath:  /\.\.\//
  },
  sass: {
    src: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'],
    ignorePath: /(\.\.\/){1,2}bower_components\//
  }
}

but still get same msg

thanks

shrijan
  • 65
  • 1
  • 9

4 Answers4

0

Check if you have .bowerrc file in your project root directory. This file points bower where to store the packages when you run bower install.

Vamshi Suram
  • 850
  • 1
  • 9
  • 19
0

Try running bower update && npm install in your app directory if that does not fix it post all your Gruntfile.js

KnuturO
  • 1,565
  • 15
  • 19
0

try removing anything in cwd in wiredep section of your Grutfile.js

wiredep: {
      options: {
        cwd: ''
      },
      app: {
        src: ['<%= yeoman.app %>/index.html'],
        ignorePath:  /\.\.\//
      }
Sanket
  • 151
  • 2
  • 2
0

I had the same issue, here's what worked in my case:

  1. Installed ruby and compass (yeoman needs these)
  2. Verified that path to Ruby bin folder is added to %PATH%
  3. Installed Git
  4. Restarted cmd window and ran "bower install" in the app folder

After that, grunt serve command worked perfectly. Note: maybe installing Git and running bower install would suffice in your case.

My answer follow this article: What is causing 'grunt serve' to throw 'No Bower components found'?

Community
  • 1
  • 1
Huy Nguyen
  • 424
  • 3
  • 10