Skip to content

make default runenr use node >20 #66

@pauljasperdev

Description

@pauljasperdev

Had to add node version hint for runner in .nvmrc to be picked up and choose node 20 build image. otherwise error in console

WebBuilder
exit status 1: running "npx --yes @opennextjs/aws@3.6.6 build":
Monorepo detected at /root/repo
Next.js version : 16.1.1
OpenNext v3.6.6

┌─────────────────────────────────┐
│ OpenNext — Building Next.js app │
└─────────────────────────────────┘


> web@0.1.0 build /root/repo/apps/web
> next build

You are using Node.js 18.20.8. For Next.js, Node.js version ">=20.9.0" is required.
 ELIFECYCLE  Command failed with exit code 1.
node:internal/errors:865
  const err = new Error(message);
              ^

Error: Command failed: pnpm build
    at __node_internal_genericNodeError (node:internal/errors:865:15)
    at checkExecSyncError (node:child_process:890:11)
    at Object.execSync (node:child_process:962:15)
    at buildNextjsApp (file:///root/.npm/_npx/50886814b1fd9b6b/node_modules/@opennextjs/aws/dist/build/buildNextApp.js:15:8)
    at build (file:///root/.npm/_npx/50886814b1fd9b6b/node_modules/@opennextjs/aws/dist/build.js:31:5)
    at async file:///root/.npm/_npx/50886814b1fd9b6b/node_modules/@opennextjs/aws/dist/index.js:9:1 {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 738,
  stdout: null,
  stderr: null
}

Node.js v18.20.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions