I am starting out angular app with angular-fullstack in my Windows 7 box. I installed bunch of npm packages with -g options, including grunt-bower-install. I created the application first by running
yo angular-fullstack appname
There were no exception during the application creation. After application was created successfully I tried to run the app using
grunt serve
expecting the server to run. But the 'grunt serve' failed with
Running "bower-install:app" (bower-install) task Cannot find where you keep your Bower packages.
We tried looking for a
.bowerrc
file, but couldn't find a customdirectory
property defined. We then triedbower_components
, but it looks like that doesn't exist either. As a last resort, we tried the pre-1.0components
directory, but that also couldn't be found.Unfortunately, we can't proceed without knowing where the Bower packages you have installed are.
Fatal error: No Bower components found.
I did find .bowerrc file and it was pointing to app/bower_components. Unfortunately, bower_components file was no where to be found. I am not sure what should be the content of the file to create it myself. Is it the missing file causing this problem or is there a npm package, I did not install correctly?
Thanks
Confusingly, the grunt-bower-install task that comes with angular-fullstack doesn't install bower components. It doesn't install anything. This error is trying to let you know that it can't find the bower_components directly, so it can't do its thing.
To fix the issue, run bower install
.
If you don't have Bower installed, run npm install -g bower
first.