问题
for my project I use AWS elasticbeanstalk. I choosed the AWS preconfigured plattform: "PHP".
While the deploy process it should install npm/node and run 'npm encore production' to create a production build of the javascript/vue/scss.
I am not sure how to solve this, tried to write container_commands but it didn't work. Do you guys can recommend a way to install npm "the best way" on AWS elasticbeanstalk, while deploying?
回答1:
Set Environment Variables like:
packages:
yum:
nodejs: []
npm: []
AWS Documentation
来源:https://stackoverflow.com/questions/53670487/aws-beanstalk-npm-on-php-platform