Reputation: 1941
I'm trying to deploy a NodeJs App on Heroku and this app uses bower. I did what have been suggested here, but I'm having this error on Heroku after a push:
bower error status code of git: 128
Upvotes: 5
Views: 1788
Reputation:
Well, doing that may not fix this problem, but you can use
git config --global url."https://".insteadOf git://
to tell git to use HTTPS instead of GIT which worked out for me to install npm dependencies.
Upvotes: 2
Reputation: 5055
Here is what I use in my app:
package.json
"scripts": {
"start": "node web.js",
"postinstall": "bower cache clean && bower install"
},
bower
to dependency list"dependencies": {
...
"bower": "~1.3.12",
...
},
Heroku
is followinginstall
postinstall
start
Upvotes: 6
Reputation: 5923
Apparently people have cleaned their cache?
https://github.com/bower/bower/issues/50
You can run arbitrary commands on your heroku host by using:
heroku run console
Upvotes: 1