While Deploying New Repository [Angular Project]

comzent-surajanbhuleHOBBY

8 months ago

#10 15.40 npm ERR! gyp ERR! find Python - Set the npm configuration variable python:

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! find Python For more information consult the documentation at:

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! find Python **********************************************************

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! find Python

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! configure error

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! stack Error: Could not find any Python installation to use

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! stack at PythonFinder.fail (/app/node_modules/node-gyp/lib/find-python.js:306:11)

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! stack at PythonFinder.findPython (/app/node_modules/node-gyp/lib/find-python.js:164:17)

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! stack at async configure (/app/node_modules/node-gyp/lib/configure.js:27:18)

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! stack at async run (/app/node_modules/node-gyp/bin/node-gyp.js:81:18)

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! System Linux 6.1.0-25-cloud-amd64

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! command "/nix/store/kr6p8nmj3y4wmfm3q6f0j8yd2zb2lxaj-nodejs-18.20.2/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

Oct 17 15:55:29

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! cwd /app/node_modules/lmdb

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! node -v v18.20.2

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! node-gyp -v v10.2.0

Oct 17 15:55:29

#10 15.40 npm ERR! gyp ERR! not ok

Oct 17 15:55:29

#10 15.40

Oct 17 15:55:29

#10 15.40 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-10-17T10_25_14_378Z-debug-0.log

Oct 17 15:55:29

Oct 17 15:55:33

#10 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1

Oct 17 15:55:33

Oct 17 15:55:33

-----

Oct 17 15:55:33

> [stage-0 6/10] RUN --mount=type=cache,id=s/20b8e68c-257a-40c2-8293-e10b1088b340-/root/npm,target=/root/.npm npm ci:

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! stack at async configure (/app/node_modules/node-gyp/lib/configure.js:27:18)

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! stack at async run (/app/node_modules/node-gyp/bin/node-gyp.js:81:18)

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! System Linux 6.1.0-25-cloud-amd64

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! command "/nix/store/kr6p8nmj3y4wmfm3q6f0j8yd2zb2lxaj-nodejs-18.20.2/bin/node" "/app/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! cwd /app/node_modules/lmdb

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! node -v v18.20.2

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! node-gyp -v v10.2.0

Oct 17 15:55:33

15.40 npm ERR! gyp ERR! not ok

Oct 17 15:55:33

15.40

Oct 17 15:55:33

15.40 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-10-17T10_25_14_378Z-debug-0.log

Oct 17 15:55:33

-----

Oct 17 15:55:33

Oct 17 15:55:33

Dockerfile:20

Oct 17 15:55:33

-------------------

Oct 17 15:55:33

18 | ENV NIXPACKS_PATH=/app/node_modules/.bin:$NIXPACKS_PATH

Oct 17 15:55:33

19 | COPY . /app/.

Oct 17 15:55:33

20 | >>> RUN --mount=type=cache,id=s/20b8e68c-257a-40c2-8293-e10b1088b340-/root/npm,target=/root/.npm npm ci

Oct 17 15:55:33

21 |

Oct 17 15:55:33

22 | # build phase

Oct 17 15:55:33

-------------------

Oct 17 15:55:33

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 1

Oct 17 15:55:33

Oct 17 15:55:33

Error: Docker build failed

2 Replies

comzent-surajanbhuleHOBBY

8 months ago

package.json

{
  "name": "prochat-web-new",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "node dist/prochat-web-new/server/server.mjs",
    "build": "ng build --configuration production",
    "watch": "ng build --watch --configuration development",
    "test": "ng test",
    "serve:ssr:bcsteperp": "node dist/prochat-web-new/server/server.mjs",
    "railway-start": "serve -s dist/prochat-web-new",
    "build:ssr": "ng build && ng run prochat-web-new:server",
    "serve:ssr:bcstep": "node dist/prochat-web-new/server/server.mjs"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^18.2.0",
    "@angular/common": "^18.2.0",
    "@angular/compiler": "^18.2.0",
    "@angular/core": "^18.2.7",
    "@angular/fire": "^18.0.1",
    "@angular/forms": "^18.2.0",
    "@angular/platform-browser": "^18.2.0",
    "@angular/platform-browser-dynamic": "^18.2.0",
    "@angular/platform-server": "^18.2.0",
    "@angular/router": "^18.2.0",
    "@angular/ssr": "^18.2.7",
    "@ngrx/effects": "^18.1.0",
    "@ngrx/store": "^18.1.0",
    "@ngrx/store-devtools": "^18.1.0",
    "express": "^4.18.2",
    "ngx-cookie-service": "^18.0.0",
    "rxjs": "~7.8.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.14.10"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^18.2.7",
    "@angular/cli": "^18.2.7",
    "@angular/compiler-cli": "^18.2.0",
    "@types/express": "^4.17.17",
    "@types/jasmine": "~5.1.0",
    "@types/node": "^18.18.0",
    "jasmine-core": "~5.2.0",
    "karma": "~6.4.0",
    "karma-chrome-launcher": "~3.2.0",
    "karma-coverage": "~2.2.0",
    "karma-jasmine": "~5.1.0",
    "karma-jasmine-html-reporter": "~2.1.0",
    "typescript": "~5.5.2"
  }
}

8 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 8 months ago


comzent-surajanbhuleHOBBY

8 months ago

What is the solution for this


While Deploying New Repository [Angular Project] - Railway Help Station