node version mismatch with corepack
sbkl
HOBBYOP

2 years ago

Project id: e3f0cf8a-bf34-4d69-a43d-4cd46d9a3293

Context: Nodejs/express typescript server within a monorepo

Env:

NIXPACKS_NODE_VERSION: 20

in package.json:

"engines": {

"node": ">=20.10.0"

},

"packageManager": "pnpm@8.15.3",

This the error I get suddenly since yesterday:

WARN EBADENGINE package: 'corepack@0.25.1',

1.471 npm WARN EBADENGINE required: { node: '^18.17.1 || >=20.10.0' },

1.471 npm WARN EBADENGINE current: { node: 'v20.9.0', npm: '10.1.0' }

1.471 npm WARN EBADENGINE }

Any idea how to fix this?

2 Replies


sbkl
HOBBYOP

2 years ago

How do I attach a full log? Too long for the reply.

The build just went through.

Still got this warning:

#12 2.337  WARN  Unsupported engine: wanted: {"node":">=20.10.0"} (current: {"node":"v20.9.0","pnpm":"8.15.3"})

Looks like the corepack version changed:

corepack@0.24.1


Welcome!

Sign in to your Railway account to join the conversation.

Loading...