jakejarvis / hugo-extended

✏️ Plug-and-play Node.js wrapper for Hugo Extended, the awesomest static-site generator.
https://www.npmjs.com/package/hugo-extended
MIT License
25 stars 6 forks source link

Getting an "Unhandled 'error' event" (Error: spawnSync ENOENT) #125

Open jaller94 opened 1 year ago

jaller94 commented 1 year ago

Looks to be similar or identical to #81.

Environment

https://gitlab.com/jaller94/dash-matrix-spec/-/jobs/3341590955

Log

Submodule 'themes/docsy' (https://github.com/matrix-org/docsy.git) registered for path 'themes/docsy'
Cloning into '/builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy'...
Submodule path 'themes/docsy': checked out 'a0032f8db919a6c67ba6cdef2c455f105b6272a2'
> matrix-spec@0.0.1 prepare
> npm run get:submodule && npm run _prepare:docsy
> matrix-spec@0.0.1 get:submodule
> git submodule update --init --depth 1
> matrix-spec@0.0.1 _prepare:docsy
> cd themes/docsy && npm install
npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm ERR! code 1
npm ERR! path /builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended
npm ERR! command failed
npm ERR! command sh -c -- node postinstall.js
npm ERR! ✔ Hugo installed successfully!
npm ERR! ✖ Hugo installation failed. :(
npm ERR! node:internal/errors:484
npm ERR!     ErrorCaptureStackTrace(err);
npm ERR!     ^
npm ERR! 
npm ERR! <ref *1> Error: spawnSync /builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended/vendor/hugo ENOENT
npm ERR!     at Object.spawnSync (node:internal/child_process:1117:20)
npm ERR!     at spawnSync (node:child_process:871:24)
npm ERR!     at execFileSync (node:child_process:914:15)
npm ERR!     at getBinVersion (file:///builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended/lib/utils.js:40:18)
npm ERR!     at install (file:///builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended/lib/install.js:51:18)
npm ERR!     at async file:///builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended/postinstall.js:4:14 {
npm ERR!   errno: -2,
npm ERR!   code: 'ENOENT',
npm ERR!   syscall: 'spawnSync /builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended/vendor/hugo',
npm ERR!   path: '/builds/jaller94/dash-matrix-spec/matrix-spec/themes/docsy/node_modules/hugo-extended/vendor/hugo',
npm ERR!   spawnargs: [ 'version' ],
npm ERR!   error: [Circular *1],
npm ERR!   status: null,
npm ERR!   signal: null,
npm ERR!   output: null,
npm ERR!   pid: 0,
npm ERR!   stdout: null,
npm ERR!   stderr: null
npm ERR! }
npm ERR! 
npm ERR! Node.js v19.1.0