Node-gyp Error
viandmarket25
HOBBYOP

2 years 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

2 years ago

Do you mean to say it relies on Python?


viandmarket25
HOBBYOP

2 years ago

Here is a screenshot

Attachments


2 years ago

Unfortunately the screenshot doesn't help, please use this to send your full build logs -

https://bookmarklets.up.railway.app/log-downloader/


viandmarket25
HOBBYOP

2 years 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/node_modules/@middleware.io/node-apm/node_modules/node-gyp/lib/find-python.js:330:47)

#10 55.17 npm ERR! gyp ERR! stack at PythonFinder.runChecks (/app/node_modules/@middleware.io/node-apm/node_modules/node-gyp/lib/find-python.js:159:21)

#10 55.17 npm ERR! gyp ERR! stack at PythonFinder. (/app/node_modules/@middleware.io/node-apm/node_modules/node-gyp/lib/find-python.js:202:16)

#10 55.17 npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/app/node_modules/@middleware.io/node-apm/node_modules/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/child_process: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/node_modules/@middleware.io/node-apm/node_modules/.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-22T21_07_47_853Z-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/child_process:477:16) 55.17 npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues: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/node_modules/@middleware.io/node-apm/node_modules/.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-22T21_07_47_853Z-debug-0.log

Dockerfile:20

18 | ENV NIXPACKS_PATH /app/node_modules/.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


2 years ago

Please use this to send your full build logs -

https://bookmarklets.up.railway.app/log-downloader/


viandmarket25
HOBBYOP

2 years ago

okay


viandmarket25
HOBBYOP

2 years ago

I am finding it difficult to use this


2 years ago

Please follow the 3 simple steps.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...