Report this

What is the reason for this report?

App Platform - npm install logic

Posted on March 22, 2021

The app platform runs a NPM Install for me, however it seems to install all dependencies in package.json:

  • dependencies
  • devDependencies
  • optionalDependencies

I am curious how I can control which package are and aren’t installed, due to the fact that it also installs optionalDependencies the proces often runs out of memory and takes a lot longer.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

👋🏼 @SwimmingCow

App Platform runs npm ci (or npm install depending on the NPM version specified in package.json). This does not install devDependencies or optionalDependencies so I’m curious as to how that’s happening. Can you share your package.json file? Are you setting any environment variables that could affect this?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.