How to force npm install on elastic beanstalk node 16?

Viewed 522

I have issues on elastic beanstalk because of some peer dependencies. In EB logs, I can see npm install --production is failing.

How can I customize EB platform to either let me run install by myself (i was able to do this with Procfile on node 14 platform) or pass flags such as --force to the command.

I am on the latest node 16 platform (using npm 8)

1 Answers

Easy way for me was to add npm_config_force=true to Software environment variables in EB.

Related