我试着回答这个问题的答案:
How can I invoke npm on heroku command line (to install bower components)?
但是在heroku日志中不断收到此错误:
7763 info TEAMVEGA@0.0.1 Failed to exec postinstall script
7764 error TEAMVEGA@0.0.1 postinstall: `./node_modules/bower/bin/bower install`
7764 error Exit status 8
7765 error Failed at the TEAMVEGA@0.0.1 postinstall script.
7765 error This is most likely a problem with the TEAMVEGA package,
7765 error not with npm itself.
7765 error Tell the author that this fails on your system:
7765 error ./node_modules/bower/bin/bower install
Heroku似乎无法找到凉亭命令。我不知道为什么凉亭即使在我的package.json中也没有安装。