Hey, we use a custom docker image to install packages.
We noticed with version 2.37.0 we cannot do our old way of installing due to some errors in the docker build
FROM artifactory/n8n-io/n8n:2.37.0
USER root
RUN mkdir -p /home/node/.n8n/nodes
RUN chown -R node:node /home/node/.n8n
WORKDIR /home/node/.n8n/nodes
RUN npm install @lexeri/n8n-nodes-lexeri
RUN npm install @frontify/n8n-nodes-frontify
RUN chown -R node:node /home/node/.n8n
USER node
Describe the problem/error/question
Error with docker image creation since version 2.37.0 npm install community nodes. It is working until 2.36.9
What is the error message (if any)?
=> [stage-0 7/10] WORKDIR /home/node/.n8n/nodes 0.0s
=> ERROR [stage-0 8/10] RUN npm install @lexeri/n8n-nodes-lexeri 10.2s
[stage-0 8/10] RUN npm install @lexeri/n8n-nodes-lexeri:
9.080 npm warn deprecated uuid@10.0.0: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).
10.16 npm error code 1
10.16 npm error path /home/node/.n8n/nodes/node_modules/isolated-vm
10.16 npm error command failed
10.16 npm error command sh -c node-gyp-build || node-gyp rebuild --release -j max
10.16 npm error gyp info it worked if it ends with ok
10.16 npm error gyp info using node-gyp@12.4.0
10.16 npm error gyp info using node@26.5.1 | linux | x64
10.16 npm error gyp ERR! find Python
10.16 npm error gyp ERR! find Python --python was not set on the command line
10.16 npm error gyp ERR! find Python Python is not set from environment variable PYTHON
10.16 npm error gyp ERR! find Python checking if “python3” can be used
10.16 npm error gyp ERR! find Python - executable path is “”
10.16 npm error gyp ERR! find Python - “” could not be run
10.16 npm error gyp ERR! find Python checking if “python” can be used
10.16 npm error gyp ERR! find Python - executable path is “”
10.16 npm error gyp ERR! find Python - “” could not be run
10.16 npm error gyp ERR! find Python
10.16 npm error gyp ERR! find Python **********************************************************
10.16 npm error gyp ERR! find Python You need to install the latest version of Python.
10.16 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
10.16 npm error gyp ERR! find Python you can try one of the following options:
10.16 npm error gyp ERR! find Python - Use the switch --python=“/path/to/pythonexecutable”
10.16 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
10.16 npm error gyp ERR! find Python - Set the environment variable PYTHON
10.16 npm error gyp ERR! find Python For more information consult the documentation at:
10.16 npm error gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool · GitHub
10.16 npm error gyp ERR! find Python **********************************************************
10.16 npm error gyp ERR! find Python
10.16 npm error gyp ERR! configure error
10.16 npm error gyp ERR! stack Error: Could not find any Python installation to use
10.16 npm error gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:300:11)
10.16 npm error gyp ERR! stack at PythonFinder.findPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:160:17)
10.16 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
10.16 npm error gyp ERR! stack at async configure (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18)
10.16 npm error gyp ERR! stack at async run (/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
10.16 npm error gyp ERR! System Linux 6.18.33.2-microsoft-standard-WSL2
10.16 npm error gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
10.16 npm error gyp ERR! cwd /home/node/.n8n/nodes/node_modules/isolated-vm
10.16 npm error gyp ERR! node -v v26.5.1
10.16 npm error gyp ERR! node-gyp -v v12.4.0
10.16 npm error gyp ERR! $npm_package_name isolated-vm
10.16 npm error gyp ERR! $npm_package_version 6.2.0
10.16 npm error gyp ERR! not ok
10.16 npm error gyp info it worked if it ends with ok
10.16 npm error gyp info using node-gyp@12.4.0
10.16 npm error gyp info using node@26.5.1 | linux | x64
10.16 npm error gyp ERR! find Python
10.16 npm error gyp ERR! find Python --python was not set on the command line
10.16 npm error gyp ERR! find Python Python is not set from environment variable PYTHON
10.16 npm error gyp ERR! find Python checking if “python3” can be used
10.16 npm error gyp ERR! find Python - executable path is “”
10.16 npm error gyp ERR! find Python - “” could not be run
10.16 npm error gyp ERR! find Python checking if “python” can be used
10.16 npm error gyp ERR! find Python - executable path is “”
10.16 npm error gyp ERR! find Python - “” could not be run
10.16 npm error gyp ERR! find Python
10.16 npm error gyp ERR! find Python **********************************************************
10.16 npm error gyp ERR! find Python You need to install the latest version of Python.
10.16 npm error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
10.16 npm error gyp ERR! find Python you can try one of the following options:
10.16 npm error gyp ERR! find Python - Use the switch --python=“/path/to/pythonexecutable”
10.16 npm error gyp ERR! find Python (accepted by both node-gyp and npm)
10.16 npm error gyp ERR! find Python - Set the environment variable PYTHON
10.16 npm error gyp ERR! find Python For more information consult the documentation at:
10.16 npm error gyp ERR! find Python GitHub - nodejs/node-gyp: Node.js native addon build tool · GitHub
10.16 npm error gyp ERR! find Python **********************************************************
10.16 npm error gyp ERR! find Python
10.16 npm error gyp ERR! configure error
10.16 npm error gyp ERR! stack Error: Could not find any Python installation to use
10.16 npm error gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:300:11)
10.16 npm error gyp ERR! stack at PythonFinder.findPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:160:17)
10.16 npm error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
10.16 npm error gyp ERR! stack at async configure (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:27:18)
10.16 npm error gyp ERR! stack at async run (/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js:81:18)
10.16 npm error gyp ERR! System Linux 6.18.33.2-microsoft-standard-WSL2
10.16 npm error gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–release” “-j” “max”
10.16 npm error gyp ERR! cwd /home/node/.n8n/nodes/node_modules/isolated-vm
10.16 npm error gyp ERR! node -v v26.5.1
10.16 npm error gyp ERR! node-gyp -v v12.4.0
10.16 npm error gyp ERR! $npm_package_name isolated-vm
10.16 npm error gyp ERR! $npm_package_version 6.2.0
10.16 npm error gyp ERR! not ok
10.17 npm error A complete log of this run can be found in: /root/.npm/_logs/2026-10-16T10_28_07_981Z-debug-0.log
Dockerfile:24
22 | WORKDIR /home/node/.n8n/nodes
23 |
24 | >>> RUN npm install @lexeri/n8n-nodes-lexeri
25 | RUN npm install @frontify/n8n-nodes-frontify
| 26 |
|---|
| ERROR: failed to build: failed to solve: process “/bin/sh -c npm install @lexeri/n8n-nodes-lexeri” did not complete successfully: exit code: 1 |
Please share your workflow
(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.)
Share the output returned by the last node
Information on your n8n setup
- n8n version: 2.37.0
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):docker
- Operating system:ubuntu wsl