Node.js Heroku Deployment - Fails To Exec Postinstall Script To Install Bower

后端 未结 5 825
暗喜
暗喜 2021-01-31 22:47

Deployment of my Node.js MEAN app to heroku fails with the following errors. I can\'t figure out what is wrong with the bower install...

Here is the error message:

5条回答
  •  鱼传尺愫
    2021-01-31 23:36

    I get this error a lot too. every third push to heroku fails because of bower postinstall.

    While this is not a robust fix, and I don't fully understand why it helps! but this hepled me, so hopefully will help someone else.

    Despite /lib folder is being added to .gitignore, force add it before deploying heroku

    git add -f public/lib
    git commit -m "force add bower libs"
    git push heroku master
    

提交回复
热议问题