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

后端 未结 5 829
暗喜
暗喜 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:27

    I got it working by ensuring to save bower in package.json using the command below. The save will install bower using npm on server before attempting to run bower install

    npm install bower --save
    

    the postinstall script in package.json "postinstall:"bower install" worked on heroku after that.

提交回复
热议问题