Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / npm install n8n: EBADPLATFORM
Fix · n8n · npm install

npm install n8n: EBADPLATFORM @napi-rs/canvas-linux-arm64-musl

Fix: install a fixed version. n8n says: "upgrade to 2.46.6 or later (stable) or 2.47.2 or later (beta)". For example npm install -g n8n@2.46.6, or npm install -g n8n@latest, which is 2.50.7 on npm today. The broken releases listed four Linux-only (musl) packages as required dependencies, and no machine matches all four.

At a glance
Errornpm error code EBADPLATFORM npm error notsup Unsupported platform for @napi-rs/canvas-linux-arm64-musl@1.0.11
Affected versions2.46.0 to 2.46.4 and 2.47.0 / 2.47.1 (installing with npm; the Docker image isn't affected)
WhereEvery OS: Debian and other glibc Linux, Alpine on x64 (it still pulls the arm64 build), and Windows (npm update -g n8n)
CauseEdit Image v2 (#41182) added @napi-rs/canvas-linux-{x64,arm64}-musl and @napi-rs/image-linux-{x64,arm64}-musl as regular dependencies
FixOfficial: 2.46.6+ or 2.47.2+, and every release from 2.48.0 (#43028)
Reports5 people on GitHub, 3 to 4 Nov 2026 (#43006, #43007)
Checked5 Dec 2026, against the sources listed below

Fix it

  1. Check which version npm tried to install: the failing package line names it, and so does npm view n8n dist-tags. On 5 Dec 2026 npm's tags are latest and release-v2 = 2.50.7, stable = 2.49.9, beta / next = 2.50.5.
  2. Install a fixed version:
    npm install -g n8n@latest
    # or pin one
    npm install -g n8n@2.46.6
    The npm registry shows the difference: n8n-nodes-base@2.46.4 lists the four -musl packages as dependencies; n8n-nodes-base@2.46.6 lists only @napi-rs/canvas and @napi-rs/image, which pick the right native build themselves.
  3. Upgrading with npm update -g n8n from 2.45.x failed? Same cause (#43007, Windows 10). Run the install line above instead; a user in #43006 reports 2.45.7 was the last version that installed cleanly before the fix.

Why it failed everywhere

Each @napi-rs/*-linux-*-musl package declares the one OS, CPU and C library it supports. As required dependencies, npm must install all four, but a machine can match at most one of them. So it fails on glibc Linux (Actual libc: glibc), on Windows (Actual os: win32), and even on Alpine x64, because the arm64 build is required too (Actual cpu: x64, #43006).

The fix (#43028) removed those four packages from n8n-nodes-base, so npm installs only the build that matches your machine, and the Docker build now adds the two musl builds it needs. n8n added a CI check so an npm install fails the build if this comes back.

Before you rely on npm for n8n

n8n's npm install docs, read today: "n8n 3.0 and later isn't published to npm." The n8n package stays on the 2.x line, and n8n points to its one-line setup or Docker for 3.x. The same page lists Node.js between 20.19 and 24.x for npm installs.

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

How do I fix EBADPLATFORM when installing n8n with npm?

Install a fixed version: 2.46.6 or later on the 2.46 line, 2.47.2 or later, or any release from 2.48.0. For example npm install -g n8n@latest (2.50.7 on 5 Dec 2026).

Which n8n versions have the EBADPLATFORM bug?

2.46.0 to 2.46.4 and 2.47.0 to 2.47.1. They required four Linux musl builds of @napi-rs/canvas and @napi-rs/image.

Does it affect the n8n Docker image?

No. The packages were meant for the Alpine Docker image; only npm installs failed.

Can I install n8n 3.x with npm?

No. n8n's docs say n8n 3.0 and later isn't published to npm; use the one-line setup or Docker for 3.x.

Related errors

Sources

Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools