Docs menu
Node.js
Deploy Node.js apps on Primcloud with npm, pnpm, or Yarn, plus guides for Next.js and Express.
On this page
Primcloud builds any app with a package.json at the root of its repo as Node.js, unless a Bun lockfile makes it a Bun app. It installs the Node.js version from engines.node, installs your dependencies with npm, pnpm, or Yarn from your lockfile, and runs your build script. Native modules built with node-gyp work as they do locally.
With no Procfile, your app starts with npm start (or the pnpm or Yarn equivalent), or node server.js or node index.js when there's no start script. Server apps (Express, Fastify, Koa) and frameworks that run a Node.js server (Next.js, Nuxt, Remix, NestJS) deploy the same way.
What's in this section#
- Getting started with Node.js: deploy a minimal Express app end-to-end.
- Node.js on Primcloud: detection, the build, and the default
webprocess. - Runtime versions: choosing and upgrading your Node.js version.
- Package managers: npm, pnpm, Yarn, and private registries.
- Customizing the build: build scripts, dev dependencies, native modules, and system packages.
- Troubleshooting Node.js: common build and runtime errors with fixes.
- Deploying Next.js:
Procfile, environment variables, and standalone output. - Deploying Express:
Procfile, port binding, and common Express patterns.