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.
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.
From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.