Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Handling errors
    • Using the SDK
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Developing in Node.js
  2. Managing dependencies

Managing Node.js function dependencies

Written by
Yandex Cloud
Improved by
Updated at October 3, 2023

Cloud Functions can automatically install dependencies required for a Node.js function to run when creating a new function version.

To install dependencies, use the npm ci --production command that runs in the project root (function directory). This installs only the primary dependencies. It will not install the development dependencies from the devDependencies section.

You can list the required libraries in the following ways:

  • Upload package.json and package-lock.json with the function code so Cloud Functions can automatically install dependencies.

    If you do not upload package-lock.json, the npm i --production command will be executed instead of npm ci --production, and the function will take longer to initialize.

  • Add all the required dependencies to a single file yourself using a code bundler, such as webpack, or upload node_modules with the function code.

The dependency installation process has some technical restrictions. For more information, see Quotas and limits in Cloud Functions. You can view the dependency installation log using the link that appears in the list of operations.

Was the article helpful?

Previous
Overview
Next
Request handler
Yandex project
© 2025 Yandex.Cloud LLC