Locally I simply run composer install
and yarn install
, but when pushing to Heroku only composer dependencies get installed, but not Yarn components. I can't seem to find a way for Heroku to trigger Yarn components installation.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I just needed to add the heroku/nodejs
buildpack inside Heroku application's settings page, alongside the already present heroku/php
. The next deploy then also installed the yarn components.