Shamoon
Shamoon

Reputation: 43639

Trying to deploy node.js to Heroku: getting compile error?

73689 info install [email protected]
73690 info postinstall [email protected]
73691 verbose unsafe-perm in lifecycle true
73692 info [email protected] Failed to exec postinstall script
73693 error [email protected] postinstall: `node node_modules/bower/bin/bower install`
73693 error Exit status 1
73694 error Failed at the [email protected] postinstall script.
73694 error This is most likely a problem with the mean package,
73694 error not with npm itself.
73694 error Tell the author that this fails on your system:
73694 error     node node_modules/bower/bin/bower install
73694 error You can get their info via:
73694 error     npm owner ls mean
73694 error There is likely additional logging output above.
73695 error System Linux 3.8.11-ec2
73696 error command "/tmp/build_7a494e6b-c84c-45df-a7ae-d42028830f5d/vendor/node/bin/node" "/tmp/build_7a494e6b-c84c-45df-a7ae-d42028830f5d/vendor/node/bin/npm" "install" "--userconfig" "/tmp/build_7a494e6b-c84c-45df-a7ae-d42028830f5d/.npmrc" "--production"
73697 error cwd /tmp/build_7a494e6b-c84c-45df-a7ae-d42028830f5d
73698 error node -v v0.10.24
73699 error npm -v 1.3.21
73700 error code ELIFECYCLE
73701 verbose exit [ 1, true ]

 !     Push rejected, failed to compile Node.js app

That's what I get when I push to heroku

Upvotes: 1

Views: 1264

Answers (2)

Shamoon
Shamoon

Reputation: 43639

Turns out my bower.json had a bootswatch version 3.0.3+1 which couldn't be deciphered. So I changed that to 3.0.3 and it worked

Upvotes: 0

Raul Cajias
Raul Cajias

Reputation: 21

This issue was answered in the following post. The solution worked for me :)

MEAN stack, Win 7, git push heroku master results in sh: bower: not found error

Upvotes: 1

Related Questions