Error occued after self hosted n8n update to 2.0 from 1.121

Describe the problem/error/question

Error occued when I try ro run n8n after self hosted n8n update to 2.0 from 1.121

What is the error message (if any)?

Error: Failed to load module “community-packages”: Cannot find module ‘/usr/local/lib/node_modules/n8n/dist/modules/community-packages.ee/community-packages.module’
Require stack:

  • /usr/local/lib/node_modules/n8n/node_modules/@n8n/backend-common/dist/modules/module-registry.js
  • /usr/local/lib/node_modules/n8n/node_modules/@n8n/backend-common/dist/index.js
  • /usr/local/lib/node_modules/n8n/dist/config/index.js
  • /usr/local/lib/node_modules/n8n/bin/n8n. Please review the module’s entrypoint file name and the module’s directory name.
    at ModuleRegistry.loadModules (/usr/local/lib/node_modules/n8n/node_modules/@n8n/backend-common/src/modules/module-registry.ts:87:12)
    at CommandRegistry.execute (/usr/local/lib/node_modules/n8n/src/command-registry.ts:46:3)
    at /usr/local/lib/node_modules/n8n/bin/n8n:63:2

I am getting the same error. Anyone know how to fix this?

Same for me. I am using NPM in Windows.

br

can avoid this error via runing n8n with node v20.19.6

I tried and I get n8n running with v20.19.6. But I get another error: Error [ERR_REQUIRE_ESM]: require() of ES Module and system retries every couple of seconds. Hope there will come soon a n8n version that is working with node.js.