I am a newbie to n8n. I am trying to create a UUID and trying to import the crypto module. But it throws the error “Cannot find module ‘crypto’ [line 1]”.
I am running a self-hosted n8n Docker image. Everything else works great except for this error
I have included “NODE_FUNCTION_ALLOW_EXTERNAL=crypto” in my .env file and restarted my docker to no avail.
Am I missing something? Thank you for your patience
ERROR: Cannot find module ‘crypto’ [line 1]
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
- **n8n version:0.222.2
- **Database (default: SQLite): SQLITE
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
- **Operating system:Ubuntu 20.04