Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Grunt (bowerInstall) fails to download bower components #38

Closed
sondreb opened this issue Aug 10, 2014 · 3 comments
Closed

Grunt (bowerInstall) fails to download bower components #38

sondreb opened this issue Aug 10, 2014 · 3 comments

Comments

@sondreb
Copy link

sondreb commented Aug 10, 2014

When running the gruntfile with "grunt debug" and modifying the bower.json file, I get the following error on Windows 8.1:

Warning: Cannot read property 'main' of undefined Use --force to continue.
Aborted due to warnings.

This happens when I create a shiny new project, and all I did was add the angular dependecy: "angular": "1.2.16".

@sondreb
Copy link
Author

sondreb commented Aug 10, 2014

Solution: run "bower update" before running "grunt bowerInstall".

Perhaps the readme should include instructions, or bower update should be run in the gruntfile?

@ragingwind
Copy link
Contributor

I don't understand bower install angular --save command will download the dependencies. grunt bowerInstall`` did not download bower dependencies I think you tried to modify the bower.json in your editor but It's better you do command bower install

@sondreb
Copy link
Author

sondreb commented Aug 11, 2014

I did modify bower.json yes, I realize that the more proper workflow is to run the bower install command. Thanks!

@sondreb sondreb closed this as completed Aug 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants