When I enabled N8N_RUNNERS_ENABLED=true for n8n and installed the http-proxy-agent library, I encountered an error related to module import.
Does anyone know how to fix this, or could you please help me?
What is the error message (if any)?
swift
Sao chépChỉnh sửa
[Task Runner]: Task runner failed to start {
error: SyntaxError: The requested module 'http-cookie-agent/http' does not provide an export named 'HttpCookieAgent'
at ModuleJobSync.runSync (node:internal/modules/esm/module_job:376:37)
at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:323:47)
at loadESMFromCJS (node:internal/modules/cjs/loader:1371:24)
at Module._compile (node:internal/modules/cjs/loader:1511:5)
at Module._extensions..js (node:internal/modules/cjs/loader:1572:16)
at Module.load (node:internal/modules/cjs/loader:1275:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)
at Module.require (node:internal/modules/cjs/loader:1298:19)
at require (node:internal/modules/helpers:182:18)
at JsTaskRunner.preventPrototypePollution (/usr/local/lib/node_modules/n8n/node_modules/@n8n/task-runner/dist/js-task-runner/js-task-runner.js:86:17)
}
Check the compatibility with your version of n8n, here is the link to the documentation that talks about the versions - Release notes | n8n Docs
Remember to DEPLOY your VPS instance
I hope I helped in some way.
If this suggestion solved your problem, please mark my post as the solution (blue box with check mark) so that this ongoing discussion does not distract others who want to find out the answer to the original question and click the heart. Thank you
Thank you very much for your valuable help. I will proceed to test it and will keep you updated if there are any further developments. Much appreciated!