a year ago
Hello support,
I have a problem deploying my nodejs project, It relies on node-gyp.
I tried adding it to package json to see if it can install via project build but no success.
How do I solve this problem with node-gyp?
8 Replies
a year ago
Here is a screenshot
Attachments
a year ago
Unfortunately the screenshot doesn't help, please use this to send your full build logs -
a year ago
> Do you mean to say it relies on Python?
Yes, I added a screenshot, can you please check
10 55.17 npm ERR! gyp ERR! find Python
10 55.17 npm ERR! gyp ERR! configure error
10 55.17 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
10 55.17 npm ERR! gyp ERR! stack at PythonFinder.fail (/app/nodemodules/@middleware.io/node-apm/nodemodules/node-gyp/lib/find-python.js:330:47)
10 55.17 npm ERR! gyp ERR! stack at PythonFinder.runChecks (/app/nodemodules/@middleware.io/node-apm/nodemodules/node-gyp/lib/find-python.js:159:21)
10 55.17 npm ERR! gyp ERR! stack at PythonFinder. (/app/nodemodules/@middleware.io/node-apm/nodemodules/node-gyp/lib/find-python.js:202:16)
10 55.17 npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/app/nodemodules/@middleware.io/node-apm/nodemodules/node-gyp/lib/find-python.js:294:16)
10 55.17 npm ERR! gyp ERR! stack at exithandler (node:child_process:430:5)
10 55.17 npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:442:5)
10 55.17 npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
10 55.17 npm ERR! gyp ERR! stack at ChildProcess.handle.onexit (node:internal/childprocess:290:12)
10 55.17 npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:477:16)
10 55.17 npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
10 55.17 npm ERR! gyp ERR! System Linux 6.1.0-20-cloud-amd64
10 55.17 npm ERR! gyp ERR! command "/nix/store/5l687mklyr9rhhbvvpvi93zv0zbbi4vg-nodejs-18.18.2/bin/node" "/app/nodemodules/@middleware.io/node-apm/nodemodules/.bin/node-gyp" "rebuild"
10 55.17 npm ERR! gyp ERR! cwd /app/node_modules/@middleware.io/node-apm
10 55.17 npm ERR! gyp ERR! node -v v18.18.2
10 55.17 npm ERR! gyp ERR! node-gyp -v v9.4.1
10 55.17 npm ERR! gyp ERR! not ok
10 55.18
10 55.18 npm ERR! A complete log of this run can be found in: /root/.npm/logs/2024-04-22T210747853Z-debug-0.log
10 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
> [stage-0 6/8] RUN --mount=type=cache,id=s/e8e78ae9-7777-400a-ae95-154b85f3be00-/root/npm,target=/root/.npm npm ci:
55.17 npm ERR! gyp ERR! stack at onErrorNT (node:internal/childprocess:477:16) 55.17 npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/taskqueues:82:21)
55.17 npm ERR! gyp ERR! System Linux 6.1.0-20-cloud-amd64
55.17 npm ERR! gyp ERR! command "/nix/store/5l687mklyr9rhhbvvpvi93zv0zbbi4vg-nodejs-18.18.2/bin/node" "/app/nodemodules/@middleware.io/node-apm/nodemodules/.bin/node-gyp" "rebuild"
55.17 npm ERR! gyp ERR! cwd /app/node_modules/@middleware.io/node-apm
55.17 npm ERR! gyp ERR! node -v v18.18.2
55.17 npm ERR! gyp ERR! node-gyp -v v9.4.1
55.17 npm ERR! gyp ERR! not ok
55.18
55.18 npm ERR! A complete log of this run can be found in: /root/.npm/logs/2024-04-22T210747853Z-debug-0.log
Dockerfile:20
18 | ENV NIXPACKSPATH /app/nodemodules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/e8e78ae9-7777-400a-ae95-154b85f3be00-/root/npm,target=/root/.npm npm ci
21 |
22 | # build phase
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1
Error: Docker build failed
a year ago
Please use this to send your full build logs -
a year ago
okay
a year ago
I am finding it difficult to use this