Closed as not planned
Closed as not planned
Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
19.2.9
Description
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
> [email protected] start /home/pavan/test
> ng serve
An unhandled exception occurred: The service was stopped: spawn /home/pavan/test/node_modules/.pnpm/@[email protected]/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/@[email protected]/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
at /home/pavan/test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:947:34
at responseCallbacks.<computed> (/home/pavan/test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:601:9)
at ChildProcess.afterClose (/home/pavan/test/node_modules/.pnpm/[email protected]/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 [email protected]: 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 [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: 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
orpnpm i && pnpm start
Exception or Error
[root@SERVER test]# pnpm start
> [email protected] start /home/pavan/test
> ng serve
An unhandled exception occurred: The service was stopped: spawn /home/pavan/test/node_modules/.pnpm/@[email protected]/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/@[email protected]/node_modules/@esbuild/linux-x64/bin/esbuild EACCES
at /home/pavan/test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:947:34
at responseCallbacks.<computed> (/home/pavan/test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:601:9)
at ChildProcess.afterClose (/home/pavan/test/node_modules/.pnpm/[email protected]/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)
Your 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>
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
No labels