googlearchive / generator-angularfire

Yeoman generator for AngularFire: Angular + Firebase apps
191 stars 52 forks source link

no such file or directory 'app/bower.json' while running grunt #8

Closed wsgavin closed 9 years ago

wsgavin commented 9 years ago

generator-angularfire 0.8.2-7 node 0.10.31 npm 1.4.23

Creating the app seems fine, no obvious errors but when I runt gunt I get an error that app/bower.json does not exist. I took out most of the output, let me know if you need more.

$ yo angularfire mynewapp

...

grunt-contrib-imagemin@0.7.2 node_modules/grunt-contrib-imagemin
├── pretty-bytes@0.1.2
├── async@0.7.0
└── imagemin@0.4.9 (stat-mode@0.2.0, ware@0.3.0, rimraf@2.2.8, nopt@3.0.1, tempfile@0.1.3, image-type@0.1.4, fs-extra@0.10.0, imagemin-svgo@0.1.1, imagemin-optipng@0.1.0, imagemin-gifsicle@0.1.1, imagemin-pngquant@0.1.3, imagemin-jpegtran@0.1.0)
app/index.html modified.
$ grunt

...

Running "wiredep:app" (wiredep) task
Warning: ENOENT, no such file or directory '/Users/warren/sandbox/atfourty/app/bower.json' Use --force to continue.

Aborted due to warnings.
ryanm2000 commented 9 years ago

I get the same thing. This was after manually adding a comma into the bower json file due to malformed json.

ByScripts commented 9 years ago

Same problem here.

mwilc0x commented 9 years ago

@ByScripts see the fix in yeoman/generator-angular/issues/841

ByScripts commented 9 years ago

Works fine, thank you :)

connor11528 commented 9 years ago

I'm getting the same issue. Added comma to bower.json. Then grunt serve gives:

Running "wiredep:app" (wiredep) task
Warning: ENOENT, no such file or directory '/Users/connorleech/Projects/canary/app/bower.json' Use --force to continue.
katowulf commented 9 years ago

@jasonshark the fix has already been noted above. See the generator-angular issue and add the appropriate change.