1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular app fails to start and build in Linux server or Docker image being run on Linux Server

Discussão em 'Angular' iniciado por Pavan Jadda, Maio 30, 2025.

  1. Pavan Jadda

    Pavan Jadda Guest

    I am facing strange issue with ng serve and ng build commands since version 19.2.11. When I run these commands on Oracle Linux server or via Docker build I see EsBuild error

    [root@SERVER test]# pnpm start

    > test@0.0.0 start /home/pavan/test
    > ng serve

    An unhandled exception occurred: The service was stopped: spawn /home/pavan/test/node_modules/.pnpm/@esbuild+linux-x64@0.25.5/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
    See "/tmp/ng-Kg5jEg/angular-errors.log" for further details.
     ELIFECYCLE  Command failed.
    [root@SERVER test]# cat /tmp/ng-Kg5jEg/angular-errors.log
    [error] Error: The service was stopped: spawn /home/pavan/test/node_modules/.pnpm/@esbuild+linux-x64@0.25.5/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
    at /home/pavan/test/node_modules/.pnpm/esbuild@0.25.5/node_modules/esbuild/lib/main.js:947:34
    at responseCallbacks.<computed> (/home/pavan/test/node_modules/.pnpm/esbuild@0.25.5/node_modules/esbuild/lib/main.js:601:9)
    at ChildProcess.afterClose (/home/pavan/test/node_modules/.pnpm/esbuild@0.25.5/node_modules/esbuild/lib/main.js:592:28)
    at ChildProcess.emit (node:events:524:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)


    I tried with PNPM and NPM. With NPM, the install fails as well. I also tried with Node versions 20, 22 and 24, the issue persists.

    [root@SERVER test]# npm i --legacy-peer-deps
    npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
    npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
    npm error code 1
    npm error path /home/pavan/test/node_modules/esbuild
    npm error command failed
    npm error command sh -c node install.js
    npm error node:internal/errors:984
    npm error const err = new Error(message);
    npm error ^
    npm error
    npm error Error: Command failed: /home/pavan/test/node_modules/esbuild/bin/esbuild --version
    npm error at genericNodeError (node:internal/errors:984:15)
    npm error at wrappedFn (node:internal/errors:538:14)
    npm error at checkExecSyncError (node:child_process:891:11)
    npm error at Object.execFileSync (node:child_process:927:15)
    npm error at validateBinaryVersion (/home/pavan/test/node_modules/esbuild/install.js:101:28)
    npm error at /home/pavan/test/node_modules/esbuild/install.js:285:5 {
    npm error status: null,
    npm error signal: 'SIGSEGV',
    npm error output: [ null, Buffer(0) [Uint8Array] [], Buffer(0) [Uint8Array] [] ],
    npm error pid: 2777422,
    npm error stdout: Buffer(0) [Uint8Array] [],
    npm error stderr: Buffer(0) [Uint8Array] []
    npm error }
    npm error
    npm error Node.js v20.19.2
    npm error A complete log of this run can be found in: /root/.npm/_logs/2025-05-30T02_54_12_695Z-debug-0.log

    Minimal Reproduction

    • Clone any repo to Oracle Linux or any linux
    • Run npm i or pnpm i && pnpm start
    Exception or Error


    [root@SERVER test]# pnpm start

    > test@0.0.0 start /home/pavan/test
    > ng serve

    An unhandled exception occurred: The service was stopped: spawn /home/pavan/test/node_modules/.pnpm/@esbuild+linux-x64@0.25.5/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
    See "/tmp/ng-Kg5jEg/angular-errors.log" for further details.
     ELIFECYCLE  Command failed.
    [root@SERVER test]# cat /tmp/ng-Kg5jEg/angular-errors.log
    [error] Error: The service was stopped: spawn /home/pavan/test/node_modules/.pnpm/@esbuild+linux-x64@0.25.5/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
    at /home/pavan/test/node_modules/.pnpm/esbuild@0.25.5/node_modules/esbuild/lib/main.js:947:34
    at responseCallbacks.<computed> (/home/pavan/test/node_modules/.pnpm/esbuild@0.25.5/node_modules/esbuild/lib/main.js:601:9)
    at ChildProcess.afterClose (/home/pavan/test/node_modules/.pnpm/esbuild@0.25.5/node_modules/esbuild/lib/main.js:592:28)
    at ChildProcess.emit (node:events:524:28)
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

    My Environment


    Angular CLI: 20.0.0
    Node: 20.19.2
    Package Manager: pnpm 10.11.0
    OS: linux x64

    Angular: <error>
    ... build, common, compiler, compiler-cli, core, forms
    ... platform-browser, router

    Package Version
    ------------------------------------------------------
    @angular-devkit/architect 0.2000.0 (cli-only)
    @angular-devkit/core 20.0.0 (cli-only)
    @angular-devkit/schematics 20.0.0 (cli-only)
    @angular/cli 20.0.0 (cli-only)
    @schematics/angular 20.0.0 (cli-only)
    rxjs 7.8.2 (cli-only)
    typescript <error>
    zone.js <error>

    Continue reading...

Compartilhe esta Página