Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparing with other Yandex Cloud services
    • Overview
    • Managing dependencies
    • Request handler
    • Invocation context
    • Logging
    • Error handling
    • Using the SDK
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Developing in Node.js
  2. Managing dependencies

Managing Node.js function dependencies

Written by
Yandex Cloud
Improved by
Updated at July 2, 2026
View in Markdown

Cloud Functions can automatically install dependencies required for a Node.js function 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 ci --production command will run instead of npm i --production, and the function will take longer to initialize.

  • Bundle all required dependencies into a single file using a code bundler, such as webpack, or upload node_modules together with the function code.

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

Was the article helpful?

Previous
Overview
Next
Request handler
© 2026 Direct Cursus Technology L.L.C.