MDK Logo

Upgrade npm for the MDK UI monorepo

Satisfy the monorepo npm >= 11 engine requirement when Node 22 ships npm 10.x

The MDK UI workspace (mdk/ui) declares engines.npm >=11.0.0 and pins packageManager to npm@11.12.0. Node 22 LTS often bundles npm 10.9.x, so npm install at the ui/ workspace root can fail with an engine warning before you clone, build, or run the demo.

Check your npm version

npm -v

If the major version is 10 (for example 10.9.4), upgrade before running npm install at the ui/ workspace root.

Upgrade npm

Pick one approach.

Option A — global npm 11 (simplest)

npm install -g npm@11
npm -v

Option B — Corepack (match upstream packageManager)

corepack enable
corepack prepare npm@11.12.0 --activate
npm -v

You should see 11.x (Option B targets 11.12.0).

Retry at the ui workspace root

cd /path/to/mdk/ui
npm install
npm run build

Next steps

On this page