Skip to content

Error: Cannot find module 'semver/functions/satisfies' #16205

Closed
@jaggyalex

Description

@jaggyalex

Bug Description

When I try to build the n8n container, I get the following error when trying to run it:

node:internal/modules/cjs/loader:1404
  throw err;
  ^

Error: Cannot find module 'semver/functions/satisfies'
Require stack:
- /usr/local/lib/node_modules/n8n/bin/n8n
    at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)
    at Function._load (node:internal/modules/cjs/loader:1211:37)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Module.require (node:internal/modules/cjs/loader:1487:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/n8n/bin/n8n:21:19)
    at Module._compile (node:internal/modules/cjs/loader:1730:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lib/node_modules/n8n/bin/n8n' ]
}

Node.js v22.16.0

I am running this with Apptainer/Singularity, but when I pull from the docker hub, it works.

To Reproduce

  1. Clone the Git Repo.
  2. Copy the Dockerfile from docker/images/n8n to the root directory of the project.
  3. Run the docker buildx build -t n8n:22 . command.

Expected behavior

N8N should run as normal.

Operating System

Red Hat Enterprise Linux 8.10

n8n Version

snapshot

Node.js Version

22.16.0

Database

SQLite (default)

Execution mode

main (default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in linearIssue or PR has been created in Linear for internal review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions