I'm trying to deploy my Yeoman's Angular app to my production server. When I try to run the grunt build command I get this error:
Running "wiredep:app" (wiredep) task Warning: ENOENT, no such file or directory '/usr/share/nginx/html/data/gaia-app/app/bower.json' Use --force to continue.
If I use grunt --force
my app is broken...
I'm on Ubuntu 14.04
Any ideas?
There are two solutions to this issue depending on which version of wiredep you want to use.
If you want to use '^1.9.0', make sure to remove the cwd property from your Gruntfile.js. This is a common issue if you are an angular-generator user which currently specifies a cwd property on the config for the wiredep task.
If you don't mind using '1.8.0', make sure to pin that version in your package.json. If you are including wiredep via grunt-wiredep, then you will have to add wiredep manually and pin it. In the case that you stick with '1.8.0', leave the cwd property in the config for the task.