jelmer/buildlog-consultant

handle missing ENOENT for binary in npm

jelmer opened this issue · 0 comments

See run 262c79ff-8352-4ef8-9c72-dac40a182bd1.

Running ['npm', 'pack']
npm ERR! code 1
npm ERR! path /build/tmptfiddig3/node-file-loader
npm ERR! command failed
npm ERR! command sh -c -- npm run build
npm ERR! > file-loader@6.2.0 prebuild
npm ERR! > npm run clean
npm ERR! 
npm ERR! 
npm ERR! > file-loader@6.2.0 clean
npm ERR! > del-cli dist
npm ERR! 
npm ERR! 
npm ERR! > file-loader@6.2.0 build
npm ERR! > cross-env NODE_ENV=production babel src -d dist --copy-files
npm ERR! node:events:491
npm ERR!       throw er; // Unhandled 'error' event
npm ERR!       ^
npm ERR! 
npm ERR! Error: spawn babel ENOENT
npm ERR!     at ChildProcess._handle.onexit (node:internal/child_process:283:19)
npm ERR!     at onErrorNT (node:internal/child_process:476:16)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! Emitted 'error' event on ChildProcess instance at:
npm ERR!     at ChildProcess._handle.onexit (node:internal/child_process:289:12)
npm ERR!     at onErrorNT (node:internal/child_process:476:16)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR!   errno: -2,
npm ERR!   code: 'ENOENT',
npm ERR!   syscall: 'spawn babel',
npm ERR!   path: 'babel',
npm ERR!   spawnargs: [ 'src', '-d', 'dist', '--copy-files' ]
npm ERR! }
npm ERR! 
npm ERR! Node.js v18.12.1

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2022-11-18T09_32_59_731Z-debug-0.log
Build failed with unidentified error:
npm ERR! code 1