Bug Description
I'm creating a custom node, and when I try to run n8n-node dev, I get this error:
> n8n-node dev
n8n-node dev v0.37.4
TypeScript Build (watching)
[5:41:19 PM] Starting compilation in watch mode...
[5:41:22 PM] Found 0 errors. Watching for file changes.
n8n Server
Error: Failed to load module "community-packages": Cannot find module '/home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/n8n/dist/modules/community-packages.ee/community-packages.module'
Require stack:
- /home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/@n8n/backend-common/dist/modules/module-registry.js
- /home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/@n8n/backend-common/dist/index.js
- /home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/n8n/dist/config/index.js
- /home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/n8n/bin/n8n. Please review the module's entrypoint file name and the module's directory name.
at ModuleRegistry.loadModules (/home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/@n8n/backend-common/src/modules/module-registry.ts:117:12)
at CommandRegistry.execute (/home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/n8n/src/command-registry.ts:46:3)
at /home/nzakas/.npm/_npx/83f51bd5dfda7e85/node_modules/n8n/bin/n8n:63:2
Shutting down gracefully... Press Ctrl+C again to force quit.
Command "n8n Server" exited with code 1.
npm error Lifecycle script `dev` failed with error:
npm error code 1
npm error path /home/nzakas/projects/savelinks/integrations/n8n
npm error workspace @bredbox/[email protected]
npm error location /home/nzakas/projects/savelinks/integrations/n8n
npm error command failed
npm error command sh -c n8n-node dev
nzakas@X1-Laptop:~/projects/savelinks/integrations/n8n (main)$ npx n8n-node --version
@n8n/node-cli/0.37.4 wsl-x64 node-v22.23.1