Can't build docker image

Describe the issue/error/question

I’m trying to run a docker image for n8n. I keep getting an error saying ›
Error: There was an error: Cannot find module 'https-proxy-agent'
I’m not even sure what this means.

What is the error message (if any)?

When it runs the image this is what it shows.

Initializing n8n process
UserSettings were generated and saved to: /home/node/.n8n/config
query is slow: CREATE TABLE "migrations" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "timestamp" bigint NOT NULL, "name" varchar NOT NULL)
execution time: 1059
 ›   Error: There was an error: Cannot find module 'https-proxy-agent'
 ›   Require stack:
 ›   - /data/node_modules/snowflake-sdk/lib/agent/https_proxy_ocsp_agent.js
 ›   - /data/node_modules/snowflake-sdk/lib/http/node.js
 ›   - /data/node_modules/snowflake-sdk/lib/snowflake.js
 ›   - /data/node_modules/snowflake-sdk/index.js
 ›   - /data/packages/nodes-base/dist/nodes/Snowflake/Snowflake.node.js
 ›   - /data/packages/cli/dist/src/LoadNodesAndCredentials.js
 ›   - /data/packages/cli/dist/src/index.js
 ›   - /data/packages/cli/dist/commands/BaseCommand.js
 ›   - /data/node_modules/@oclif/config/lib/plugin.js
 ›   - /data/node_modules/@oclif/config/lib/config.js
 ›   - /data/node_modules/@oclif/config/lib/index.js
 ›   - /data/node_modules/@oclif/command/lib/command.js
 ›   - /data/node_modules/@oclif/command/lib/index.js
 ›   - /data/packages/cli/bin/n8n

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 0.185.0
  • Database you’re using (default: SQLite):
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm,, desktop app]: Docker

Hi @Marfuen, I am sorry to hear you’re having trouble.

This problem was reported on our Discord recently, but should have been fixed iirc. Seeing you are using [email protected], could you try pulling the latest code from the master branch and build a fresh image?

Got it, I will try updating.

It worked @MutedJam , thanks for your help and quick response!

1 Like