I experienced this same error and performed the following per this thread:
ran : /opt/minemeld/www/venv/bin/npm install -g bower
And run again the ansible playbook.
Now I receive the following message when I run the ansible playbook:
TASK [minemeld : bower install] ********************************************************************************** fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["bower", "install", "--allow-root"], "delta": "0:00:00.893631", "end": "2018-07-11 08:18:05.633195", "msg": "non-zero return code", "rc": 1, "start": "2018-07-11 08:18:04.739564", "stderr": "bower invalid-meta for:/opt/minemeld/www/webui/bower.json\nbower invalid-meta The \"name\" is recommended to be lowercase, can contain digits, dots, dashes\nbower angular-animate#~1.5.8 MODULE_NOT_FOUND Cannot find module 'q'", "stderr_lines": ["bower invalid-meta for:/opt/minemeld/www/webui/bower.json", "bower invalid-meta The \"name\" is recommended to be lowercase, can contain digits, dots, dashes", "bower angular-animate#~1.5.8 MODULE_NOT_FOUND Cannot find module 'q'"], "stdout": "", "stdout_lines": []}
... View more