Runtimes and Dependencies
Choose a Node.js runtime for serverless functions and manage dependencies with npm, yarn, or pnpm via nhost.toml.
Node.js runtime npm yarn pnpm package manager dependenciesRuntimes
Section titled “Runtimes”The following runtimes are supported:
- Node.js 22
- Node.js 24 (default)
- Node.js 26
To select your preferred runtime ensure the following configuration is present in your nhost.toml file. If omitted, Node.js 24 is used by default.
[functions.node]version = 22[functions.node]version = 24[functions.node]version = 26Package Managers
Section titled “Package Managers”For Node.js, the following package managers are supported:
To use one package manager or another, add the relevant lockfile (either package-lock.json for npm, yarn.lock for yarn or pnpm-lock.yaml for pnpm) to the functions folder or a parent folder. If multiple lockfiles are present, preference order is npm > pnpm > yarn.