Runtimes and Dependencies
Node.js runtime npm yarn pnpm package manager dependenciesRuntimes
Section titled “Runtimes”The following runtimes are supported:
To select your preferred runtime ensure the following configuration is present in your nhost.toml file:
[functions.node]version = 20[functions.node]version = 22Package 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.