Grunt serve not working after updating gruntfile.js update

947 views Asked by At

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

4

There are 4 answers

0
Huy Nguyen On BEST ANSWER

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'?

0
KnuturO On

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

1
Vamshi Suram On

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.

0
Sanket On

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

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