| Error | npm error code EBADPLATFORM npm error notsup Unsupported platform for @napi-rs/canvas-linux-arm64-musl@1.0.11 |
|---|---|
| Affected versions | 2.46.0 to 2.46.4 and 2.47.0 / 2.47.1 (installing with npm; the Docker image isn't affected) |
| Where | Every OS: Debian and other glibc Linux, Alpine on x64 (it still pulls the arm64 build), and Windows (npm update -g n8n) |
| Cause | Edit Image v2 (#41182) added @napi-rs/canvas-linux-{x64,arm64}-musl and @napi-rs/image-linux-{x64,arm64}-musl as regular dependencies |
| Fix | Official: 2.46.6+ or 2.47.2+, and every release from 2.48.0 (#43028) |
| Reports | 5 people on GitHub, 3 to 4 Nov 2026 (#43006, #43007) |
| Checked | 5 Dec 2026, against the sources listed below |
Fix it
- 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 arelatestandrelease-v2= 2.50.7,stable= 2.49.9,beta/next= 2.50.5. - Install a fixed version:
The npm registry shows the difference:npm install -g n8n@latest # or pin one npm install -g n8n@2.46.6n8n-nodes-base@2.46.4lists the four-muslpackages as dependencies;n8n-nodes-base@2.46.6lists only@napi-rs/canvasand@napi-rs/image, which pick the right native build themselves. - Upgrading with
npm update -g n8nfrom 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
- n8n: Task request timed out (Code node not matched to a runner)
- n8n SFTP: Timed out while waiting for handshake
- n8n: Output data redacted (credential you don't have access to)
Sources
Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.
- n8n-io/n8n #43006 (EBADPLATFORM on glibc and Alpine; n8n: fixed in 2.46.6 / 2.47.2): github.com/n8n-io/n8n/issues/43006
- n8n-io/n8n #43007 (Windows, npm update -g n8n): github.com/n8n-io/n8n/issues/43007
- n8n PR #43028 (fix: make npm install of n8n work on all platforms again): github.com/n8n-io/n8n/pull/43028
- n8n PR #41182 (Edit Image v2 added the bindings, released 2.46.0): github.com/n8n-io/n8n/pull/41182
- n8n release notes: 2.46.6: github.com/n8n-io/n8n/releases/tag/n8n%402.46.6
- n8n docs: npm installation (n8n 3.0+ not on npm, Node.js versions): docs.n8n.io/hosting/installation/npm/
- npm registry: n8n-nodes-base (dependencies by version): www.npmjs.com/package/n8n-nodes-base?activeTab=versions
- n8n source today: only the wrapper packages in nodes-base (package.json L959-L960): github.com/n8n-io/n8n/blob/c40524fb7299ab7c31d0d7546807fc8ead75f6b7/packages/nodes-base/package.json#L959-L960
- Exposed API key checker: find API keys committed to a repo or shipped to the browser
- reviewready CLI: one command that checks an AI app repo before it ships